LOUISVILLE, Ky. (WDRB) -- Fifteen years is how long a Louisville man will spend behind bars for child porn.

Gregory Mathis decided not to stand trial on the charges. He was arrested just over a year ago by the Attorney General's Cyber Crimes unit.

He pleaded guilty back in June and on Monday morning, Circuit Judge McKay Chauvin formally sentenced him to 15 years.

Mathis is guilty of a total of 36 counts related to soliciting sex from minors under the age of 16 and possession of child porn.

Authorities say Mathis would use social media to solicit young girls for nude photos and videos.

In a written statement, Mathis said he was disgusted with himself and sorry for the impact on his family.

The judge also told Mathis to think about the damage done to his victims. "They can be helped if they're lucky enough to get the opportunity for help. But under the best of circumstances, they are damaged in a way that requires a lot of them, and a lot of other people to make their lives okay. That's why these particular offenses carry such huge penalties," Judge Chauvin said.

Mathis must also register as a sex offender.

Copyright 2016 WDRB News. All rights reserved.