A Clifton Park man on Monday pleaded guilty to distributing child pornography, according to the U.S. Attorney’s Office in the Northern District of New York.

William C. Ruff, 43, admitted that on eight occasions between Oct. 10, 2016 and Dec. 17, 2016, he used file-sharing software to distribute child porn on the internet, some of the videos and images depicting children as young as 3 years old, federal attorneys said.

Ruff has been in custody since his arrest on Dec. 21, 2016 and is scheduled to be sentenced on Aug. 15.

He faces at least five years and up to 20 years in prison, at least five years and up to lifetime post-imprisonment supervised release, and a maximum $250,000 fine. Ruff will also have to register as a sex offender when he is released from prison.

This case was investigated by the FBI, with assistance from the Saratoga County Sheriff’s Office, and is being prosecuted by Assistant U.S. Attorney Joseph A. Giovannetti. It’s being prosecuted as part of Project Safe Childhood, a nationwide initiative designed to protect children from online exploitation and abuse.