Pennsylvania Gov. Tom Wolf on Sunday signed a bill legalizing medical marijuana, making the state the 24th in the country to authorize a comprehensive medical marijuana program.

The “truly historic legislation,” the governor said, gives patients with serious medical conditions access to medical marijuana with a physician’s certification at designated state dispensaries to alleviate pain. The law also sets standards for tracking plants, certifying physicians and licensing growers, dispensaries and physicians, according to the Associated Press. Patients can take the drug in pill, oil, vapor, ointment or liquid form.

“The signing of this bill, which will improve the quality of life for patients and their families throughout Pennsylvania, shows that Harrisburg can come together to address big challenges on behalf of the people of the commonwealth,” Wolf said in a statement.

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.