Newton St Boswells man faces jail over indecent images
A TV satellite technician was so alarmed by images he saw on equipment in a house in the Scottish Borders that he contacted the police.
It led the arrest of Brendan Lennon, 27, after an investigation uncovered 26,328 indecent images of children.
At Edinburgh Sheriff Court the laboratory technician, of Newtown St Boswells, admitted having the images and distributing them to others.
Sheriff Gordon Liddle warned him he faced a jail term.
The sheriff was told that the computer expert who examined a laptop, systems unit, tablet and mobile phone belonging to Lennon found images of a "very strong and extreme nature indeed".
Fiscal depute Melanie Ward said they mainly featured girls aged between five and 12, but also some infants and babies.
Defence solicitor Mark Harrower said Lennon lived with his elderly parents and was under "no illusion" that he would go to jail.
He said his client had had counselling and attended three sessions of 'Stop It Now', a government service to help people facing similar charges.
Sheriff Liddle said: "These sickening images are at the extreme end of the scale."
He added: "Nothing other than a custodial sentence is appropriate. The question is for how long."