An Angus machine operator was caught with nearly 20,000 images of child abuse and bestiality during a police raid on his home.
John Dall had several hours of graphic video featuring children of all ages from infants up to teenagers, Dundee Sheriff Court was told.
Dall, 43, freely admitted having a collection of child abuse images during the police search.
Depute fiscal Vicki Bell told the court: “Police received information indicating indecent images of children may be on devices at his address.
“A search warrant was executed and the accused was the only person who was in.
“He went to the bedroom to change out of his nightwear.
“He told the officers ‘there’s no point in not being honest with you. I did what you were saying.’”
The court was told there were 11,256 images on an SD card and a further 6,491 images on a mobile phone. Among the material was hours of explicit video.
Miss Bell said the material featured children of all ages, but the majority were aged between five and 10, and there were 66 images of people engaged in sex acts with animals.
Dall, of Union Street, Brechin, admitted having indecent images of children at his home between April 15 and September 27 last year.
He also admitted having extreme images involving adults and animals.
Sheriff Thomas Hughes deferred sentence on Dall for the preparation of social work reports and placed him on the sex offenders register.