A Methil man is facing jail after being caught with indecent images of children for a second time.
Officers raided the home of David Robertson after receiving intelligence that sickening photographs had been accessed from the Oakvale Road property.
Robertson, a shop assistant, denied having viewed the images but admitted his guilt at Kirkcaldy Sheriff Court.
The court was told how officers seized a storage device and two mobile phones which contained more than 300 child abuse images.
Depute fiscal Sarah Lumsden told the court that 23 of the images were of the most serious level.
The photographs had been deleted from the device and were no longer accessible but left a trace which investigators were able to find.
Robertson admitted that between May 1 and November 1 last year, he took or permitted indecent photographs of children to be taken at the property in Methil. The charge relates to Robertson downloading images rather than them being taken on the property.
Defence solicitor Iain McCafferty told the court his client had a previous conviction for the same offence dating back to 2012, which had been dealt with by a probation order.
He added that the number of images during the first incident were far higher than his latest conviction.
Sheriff James Williamson deferred sentence for a background report and ordered Robertson to sign the sex offenders.