FRESNO, Calif. (AP) – A house guest convicted of repeatedly kidnapping and sexually abusing a California couple’s toddler during overnight stays was sentenced by a federal judge Tuesday to life in prison, prosecutors said.

Shawn McCormack, 31, of Colorado Springs, pretended to be the couple’s friend, but used visits to their Bakersfield home to abuse their toddler in the middle of the night at motels and in parked cars while the couple slept, according to the Department of Justice. McCormack was also accused of photographing and recording the abuse and distributing the images online.

READ MORE: 11 African Lions Test Positive For COVID At Denver Zoo

“McCormack’s depraved actions in this case are the stuff of nightmares,” Assistant Attorney General Leslie Caldwell said in a statement.

READ MORE: Judge Expected To Rule On Douglas County Schools Mask Lawsuit On Tuesday

Homeland Security agents in 2010 discovered images and recordings distributed by McCormack. They were able to identify the date one of the videos was produced and the motel room where it was shot and learned that McCormack had rented the room that night, according to prosecutors.

A jury found him guilty in April of four counts of sexual exploitation of a child and two counts of kidnapping.

MORE NEWS: Many Colorado Pharmacies Slammed With Demand As COVID Booster Eligibility Widens

(© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)