A Casper man pleaded guilty Thursday to stealing packages of a prescription painkiller and another medicine from the UPS facility in February and March.

Bryan Dennis entered the pleas to one count of possession of hydrocodone, one count of possession of dextroamphetamine, and three counts of burglary, during a hearing in Natrona County District Court.

Dennis told District Court Judge Catherine Wilking he was injured while overseas, and the medications he took to deal with the pain became an addiction.

He worked at the UPS facility in Casper, knew the office where the prescription medicines were kept during transit on their way to patients at the Veterans Affairs Medical Center in Sheridan.

Dennis said he broke into that office and stole them -- once in February and twice in March.

In exchange for his guilty pleas, Assistant District Attorney Trevor Schenk and public defender Rob Oldham recommended Dennis serve five concurrent three-year to five-year prison terms with all of them suspended if he completes three years of probation.

Schenk and Oldham also agreed Dennis will complete a program at the Casper Re-entry Center.

Wilking told Dennis that she is not a party to the plea agreement between the prosecution and the defense, and she could reject it at his sentencing, the date of which has yet to be sent.

Dennis remains free on bond.