PLEASANT HILL, Iowa (AP) — An Iowa man accused of collecting and distributing child pornography using a public library's internet connection has been sentenced to 20 years in federal prison.

U.S. Attorney Nicholas A. Klinefeldt said in a news release Monday that 37-year-old Corey Lee Steffen of Pleasant Hill was sentenced Wednesday. Steffen was also sentenced to 10 years of supervised release and ordered to forfeit the computer equipment he used.

Authorities said Steffen was caught in 2012 using the Internet connection at the Pleasant Hill Public Library to collect and distribute child porn on his laptop. According to the news release, Steffen recorded several sex acts he engaged in with a 14-year-old Minnesota girl in 2010 and distributed some of the videos to a friend in Nevada.