LOUISVILLE, Ky. – A former Kentucky principal allegedly admitted to investigators that he is “addicted to pornography” and traded nude images of underage students online that he stole from confiscated cell phones.

Former LaRue County High School principal Kyle Goodlett, 36, was indicted by a grand jury in Louisville Wednesday on 63 for possessing and transporting child pornography after pleading not guilty to 63 federal child porn charges last month, the Associated Press reports.

MORE NEWS: Know These Before Moving From Cyprus To The UK

Elizabethtown Police launched an investigation in September when a 20-year-old former student at Elizabethtown High School told investigators she learned that nude images she took for her boyfriend when she was 15 years old appeared on a Russian porn website, and local officers contacted the Department of Homeland Security.

Federal officials traced the IP address that upload the images to an account used by Goodlett and secured a search warrant for his home, where Kentucky State Police allegedly found at least 60 child pornography images on his electronic devices, according to WDRB.

The next month, Kentucky State Police arrested Goodlett on three counts of distribution of matter portraying a sexual performance by a minor and 60 counts of possession of matter portraying a sexual performance by a minor.

“Schools superintendent Sam Sanders announced his firing a few days after Goodlett was arrested at his home in October, calling it ‘an unprecedented situation,’” the AP reports. “Parents and staff at the schools expressed shock, some noting that he has a wife and children.”

Then, in December, the National Center for Missing and Exploited Children identified a known minor victim from the pictures in the former principal’s Dropbox account. Investigators also found the Elizabethtown woman’s images.

Shortly after, Goodlett signed a waiver agreeing to a recorded interview with state police.

MORE NEWS: How to prepare for face-to-face classes

“Goodlett admitted to KSP that he had an addiction to pornography and that he transferred images from phones confiscated from students to his personal thumb drive without their consent or knowledge,” Department of Homeland Security Special Agent Brady Oberholtzer wrote in the federal complaint.

Goodlett allegedly told police he stole the nude images “with the intent of trading for more images.”

Kentucky State Police are asking students who attended Elizabethtown High School between 2010 and 2012 – or LaRue County High School between 2012 and 2016 – to contact them if they had their cell phones taken by school staff.

Goodlett faces no less than five years in prison for the charge of transporting child pornography and up to 20 years in prison for possessing child pornography, if convicted, Louisville U.S. Attorney’s Office spokeswoman Stephanie Collins told WDRB.

Ironically, students at LaRue County High School told WLKY their former principal constantly harped on students to “do the right thing, because it’s the right thing to do.”