PRINCETON, Ind. (AP) – A former custodian at a southern Indiana school has been sentenced to six years in prison after pleading guilty to making methamphetamine inside a school.

Michael Shafer pleaded guilty last month to a felony charge of manufacturing meth. A Gibson County judge also sentenced Shafer Tuesday to six years of probation.

The 43-year-old was arrested in December 2011 after authorities found an explosion-prone “one-pot” method of making meth in a storage area on the main campus of the East Gibson School Corporation in Oakland City.

Shafer’s attorney told the court his client has struggled with addiction for years.

Attorney Jon Brinson told the judge that Shafer is “stable, regular, and one of those decent people, who happens to be addicted to methamphetamine.