Follow CBSDFW.COM: Facebook | Twitter

HARRISBURG, Pa. (AP) – Pennsylvania has become the 24th state to legalize a comprehensive medical marijuana program.

READ MORE: 'My Nerves Are Still Rattled': Passenger Aboard Amtrak Train Talks Crash

Democratic Gov. Tom Wolf signed the bill into law Sunday afternoon surrounded by a jubilant crowd of supporters at the Capitol.

Democratic Sen. Daylin Leach, the bill’s co-sponsor, said “Marijuana is medicine, and it’s coming to Pennsylvania.”

READ MORE: Man, Pregnant Woman & Baby Killed In Crash Along Highway 360; Police Investigating

The bill’s drafters say it could take two years to write regulations and get retailers opened. But a provision allows parents to legally administer medical marijuana to their children before the bill takes effect in a month.

The bill sets standards for tracking plants, certifying physicians and licensing growers, dispensaries and physicians. Patients could take marijuana in pill, oil, vapor, ointment or liquid form, but would not be able to legally obtain marijuana to smoke or grow.

MORE NEWS: Flash Flooding: Second Body Recovered After Vehicle Swept From Texas Bridge

(© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)