A MAN found himself locked in a DIY store when he hid himself there to take drugs.
Craig Wilson, 39, was discovered by police as he tried to make his escape.
They then promptly charged him for possession of the Class B drugs.
Wilson pleaded guilty to the offence when he appeared before Kirklees magistrates.
Alex Bozman, prosecuting, said that police were called after the alarm was activated at the Dewsbury branch of Wickes on May 13.
He said: “When officers got there he was crouching under the roller shutter doors.
“He had tried to open them so that he could get out.”
Wilson, of Craven Drive in Cleckheaton, was initially arrested on suspicion of burglary.
He explained that he had amphetamine on him and was taken to the police station.
Mr Bozman said: “He said that he had gone into the store, hidden himself there, taken some drugs and then fell asleep.
“When he woke up the store was all locked up and he tried to get himself out.”
Wilson said that he paid £40 for the drugs, which he had mixed with caffeine.
Magistrates were told that he also admitted to taking some crack cocaine the previous day.
His last conviction was in 2009 when he was jailed for possession with intent to supply.
Wilson, who was not represented, said that he had taken the drugs with the intention of going to the gym.
He said he mixed them with caffeine in a bit to give himself more of an energy boost.
Magistrates fined Wilson £70 and ordered him to pay £85 costs as well as a £15 victim surcharge.