GENEVA, Ill. (AP) – A suburban Chicago cancer patient who ordered a 42-pound (19-kilogram) package of THC-infused chocolates from a California dispensary to self-medicate has been sentenced to four years in prison.

Thomas J. Franzen of Montgomery pleaded guilty in Kane County Circuit Court to possession of more than 5,000 grams (176 ounces) of cannabis, a felony that carried a prison term of from probation to 15 years.

READ MORE: Family And Friends Of 'School Of Rock' Actor Kevin Clark Call For Improved Bike Safety At Logan Square Intersection Where He Was Killed

Defense attorney David Camic said prosecutors showed “compassion” in dismissing the more serious charge of cannabis trafficking after authorities intercepted the chocolates in 2014.

READ MORE: Protesters Demand Arrest Of Officer In Anthony Alvarez Shooting

Camic says the 37-year-old Franzen has stage 4 cancer and was using the chocolates to relieve himself from symptoms, such as nausea.

Franzen is due in court June 14, when he will present results of new medical tests to Judge Clint Hull, who will decide when Franzen will begin serving his prison term.

MORE NEWS: Man Shot And Killed While Sitting In Vehicle In South Loop; Dog Apparently Wounded In Attack

Copyright 2019 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.