A Texas pastor pleaded guilty to an enhanced charge of possession of child sex abuse images after admitting to downloading some of the materials at his church, according to the United States Attorney’s Office for the Western District of Texas and court documents.

David Lloyd Walther, 57, “knowingly searched for, downloaded, distributed and possessed” child sex abuse images, some of which depicted prepubescent minors, on a peer-to-peer file sharing network while he was the pastor of Faith Baptist Church in Round Rock, a city 18 miles north of Austin, the U.S. Attorney’s Office said Thursday.

Walther was arrested Nov. 9 after a search of his home and car turned up two large computer hard drives with more than 100,000 images and more than 5,000 videos of child sex abuse material, the U.S. Attorney’s Office said.