Two brightly decorated vending machines are the first in Canada to dispense crack pipes as part of a campaign to reduce the spread of disease among drug users in Vancouver.

Run by the non-profit Portland Hotel Society, which helps people with mental health and addiction issues, the machines have been operating for about six months, reported Vice. Each machine, which holds Pyrex 200 pipes packaged in cardboard tubes, needs to be replenished weekly.

Diseases like hepatitis C, HIV, pneumonia and tuberculosis can be spread by sharing chipped or broken crack pipes with people who have sores and burns on their lips.

Existing programs provide drug users with safe, clean pipes, but they're usually limited to one a day, Kailin See, director of the Drug Users Resource Centre, told CTV News. The vending machines allow them to buy as many pipes as they need for 25 cents each.

The machines, which used to dispense sandwiches, are part of a broader harm reduction strategy.