The D.C. Council on Tuesday voted unanimously for a second time in favor of legalizing the sale of marijuana for medicinal purposes. A preliminary vote took place on April 20.

The final vote means the bill will now go to D.C. Mayor Adrian Fenty for his signature.

One amendment was successfully added before the legislation was passed. It allows for patients to possess up to four ounces, as opposed to two ounces, of marijuana in a given month, though only if the mayor decides such an increase is warranted.

A pair of other amendments, offered by Ward 1’s Jim Graham (D), were rejected by the Council. One would have made it possible for D.C. patients who see doctors in Maryland or Virginia to fill prescriptions for pot in the District. The bill as passed only allows physicians with offices inside D.C. to prescribe marijuana. Graham’s other failed amendment would have created special civil protections for medical marijuana patients.

The legislation allows between five and eight medical pot distribution centers to open inside the District, provided they are not located within 300 feet of any school or youth center. Patients will not be permitted to grow their own marijuana at home.

D.C. voters approved a referendum legalizing medical marijuana over 11 years ago. But interference from Congress prevented the city from implementing the law until now.