A dog walker caught with a stun gun claimed he found it in woodland and didn't realise it was a prohibited weapon.
Police officers spotted the device on Michael Schreiber's bed when they were speaking to him about another matter.
Schreiber, 41, of Juniper Road, Viewpark, appeared at Hamilton Sheriff Court this week.
He admitted possession of a stun gun at his father's home in Acer Gardens, Viewpark, on February 20.
Aga Mathieson, prosecuting, said Schreiber's dad called the police after a row. When officers arrived around 10.15pm his son was sleeping in bed.
Ms Mathieson told the court: "The officers noticed a device on top of his bed that they recognised as a stun gun.
"The accused confirmed it was his. He said he found it in Viewpark Glen while walking his dog, adding 'I thought it was a tool for the car and put batteries in it'."
Schreiber was then charged with possessing a prohibited weapon and replied 'I don't think that's fair. I just found something. It has nothing to do with me'.
Schreiber's lawyer said he did eventually "work out what it was", but stressed: "There is no suggestion that the device was ever used.
"His position is it never left his bedroom after he took it home and was there for a significant period of time."
Sheriff Thomas Millar deferred sentence until next month for a criminal justice social work report and an electronic tagging assessment.
Schreiber had his bail continued.
**Don't miss the latest headlines from around Lanarkshire. Sign up to our newsletters here.
And did yo u know Lanarkshire Live is on Facebook? Head over to our page to give us a like and share.