A knife-wielding thug was caught soon after an unsuccessful bank robbery as he handed over a card with his name on it.
Scott Ferguson, 36, stood in the queue at the Bank of Scotland branch in Partick waiting to be served before being called over by a female worker.
Prosecutor Michael Macintosh told the High Court in Glasgow: "Ferguson used his bank card to check his account.
"He withdrew the balance of £3 and then said: 'One more thing'.
"He walked around the counter and stated: 'Give me the rest of the money'.
"The staff member realised that he was holding a knife."
As she then yelled for help, Ferguson rummaged through a cash box, but soon escaped empty handed, Glasgow Live reports.
Police were alerted and found the worker to be "visibly distressed and shaken".
Mr Macintosh: "CCTV confirmed the identity of Ferguson by reference to his bank details and comparing the footage of photos police had of him."
Ferguson went on to carry out another knife-point raid that same day at a Farmfoods store in Drumchapel stealing several hundred pounds.
Police learned Ferguson was the culprit and initially contacted his mother.
She phoned him while officers were there and he said: "I am sorry. I have done a bad thing."
Ferguson insisted he would hand himself in, but failed to.
It was later that day he was found at a house in Drumchapel.
He went on to threaten officers after being held.
The court was also told yesterday DNA linked Ferguson to another raid at the Wild Things florist in Scotstoun on March 18, 2019.
He demanded cash that day and swung a hammer at one of the owners, but again left with nothing.
Ferguson admitted robbing the Farmfood shop as well as attempting to rob the bank and florist.
He further pleaded guilty to an assault charge and resisting police.
Ferguson already had a lengthy criminal record and had been freed early from a previous jail-term at the time.
Lord Lake remanded him in custody and adjourned sentencing until next month for reports.