Police carrying out inquiries at a Leven house saw heroin lying on a living room table in front of them.
Officers secured a warrant, leading to a 32-month jail sentence for the householder for drug dealing.
Aaron Robertson, 43, a prisoner at Perth, admitted that on January 20 at his home in Baird Crescent, Leven, he was in possession of diamorphine with intent to supply.
He also admitted that between November 20 last year and January 20 at the same address and elsewhere he was concerned in the supplying of amphetamine to others.
Depute fiscal Claire Miller said police officers had attended the address in connection with a separate matter.
“Whilst in the property, officers noted heroin in plain view on a table in the living room,” she went on.
A full scale search was carried out and a number of items were seized including brown powder in a glasses case, scales, tin foil and mobile phones. A large quantity of white powder was found in the freezer.
Forensic examination showed there was heroin with an estimated value of £1,000 and amphetamine with a value of £6,000. Examination of the phones revealed discussions about amphetamine had been going on since the previous November.
Sheriff Craig McSherry jailed him for 32 months after hearing Robertson has had a heroin habit for around 20 years.