A Swedish police officer robbed a bank - then returned a short while later to lead the hunt for the culprit.
The 36-year-old admitted to a charge of robbery and acquiring a car by making threats during a closed court hearing.
According to Swedish radio, he led a police investigation into the robbery that led to a raid on a flat and the arrest and remand of two people.
Colleagues became suspicious after he bought a new car using banknotes from the robbery, the court said.
At a court hearing in the town of Bollnas, he admitted robbing a branch of the Nordea Bank in the nearby coastal town of Soderhamn, 240km (150 miles) north of Stockholm.
He used threats to seize a car after the robbery on 17 December, the court was told.
Swedish radio Ekot said he is also accused of gross dereliction of duty for then leading the police investigation into the robbery.
This led to a raid on a flat in Soderhamn and the arrest of two people on suspicion of carrying out the crime.
His defence solicitor, KG Myhrberg was quoted by Ekot as saying his client was "deeply regretful" and did not know why he carried out the robbery.
"He is disconsolate about what he did, both in relation to his family and to others who are affected by the robbery," he said. "He cannot give any reasonable explanation for it."
The amount of money stolen has not made public, but is said to be sizeable, Reuters news agency reported.
Suspicion was raised after he bought a car for 219,000 Swedish crowns ($31,400) in mid-January.