A father and son were caught with a stash of indecent images of children in their home.
Andrew Clark, 66, and Adam Clark, 34, had their house in Rutherglen, South Lanarkshire, raided in March 2019.
Various devices seized contained 1580 pictures of children aged between four and 16.
Andrew, a widower, also wrote erotic fiction about kids and used photo editing software to create sick images.
At Glasgow Sheriff Court on Tuesday, the pair pleaded guilty to taking or permitting to be taken indecent photographs of children.
Andrew further admitted possession of indecent photographs and distributing the images.
The court heard police received information that an IP address from the house in Lochlea Road had searched for indecent images.
Officers raided the property and a host of electronic devices were seized from the pair.
Adam told officers: “I may have been looking at things I shouldn’t have.”
Two “unbranded tower units” belonging to him were found to contain still and moving images.
The images were created between May 2010 and March 2019.
Prosecutor Hannah Sweeney said: “The images contained pre and post-pubescent male and female children aged between seven and 16.”
His father meantime was found to have still and moving images across DVDs, two laptops, memory cards and a pen drive.
Miss Sweeney added: “The devices included erotic stories created by ‘Andy’ and photo edited images which were created by the user.”
Andrew also sent emails containing indecent images.
Miss Sweeney said: “The majority of the emails were sexualised, where each user spoke about young children in graphic detail.
“Andrew Clark detailed his interest in young children.”
Sentence was deferred until next month for background reports by Sheriff Andrew Cubie.
The first offenders were granted bail and put on the Sex Offenders’ Register meantime.
STV News is now on WhatsApp
Get all the latest news from around the countryFollow STV News
Follow STV News on WhatsApp
Scan the QR code on your mobile device for all the latest news from around the country