An affidavit states that authorities were conducting a proactive investigation on June 8 into a peer to peer file network called Bit Torrent.

Investigators say they found a user who was distributing, exchanging and downloading files containing child pornography.

Authorities traced the user to a home on Dellwood Avenue in North Charleston where Williams resided.

Further investigation revealed that Williams was a registered sex offender in South Carolina.

An affidavit states that after deputies served a search warrant at Williams home, he confessed during an interview with detectives that he downloaded material he knew to contain minors engaged in sexual activity.

"The defendant also confessed to changing the settings so that he would be distributing the maximum amount of files possible," authorities said.