New York is now the 23rd state to authorize marijuana as a medical treatment—though it will have one of the more restrictive programs in the country.

Under legislation signed into law on Saturday by Gov. Andrew Cuomo, patients with one of 10 diseases will be able to obtain non-smokeable versions of the drug. Officials chose to prohibit distribution of marijuana plant material to discourage non-medical use.