PINELLAS PARK, Fla. (CBS) – A Florida man who police say Googled “how to rob a bank” is now behind bars for committing a bank robbery.

It happened around 10:52 a.m. last week at the Achieva Credit Union

READ MORE: Segura 2 HRs, Nola Sharp, Phillies Beat Mets, Win 4th In Row

‘Supervolcano’ Under Yellowstone May Have Planet-Killing Potential

Authorities say 26-year-old William Johnson approached the teller, said he had a gun and demanded money. Johnson then fled with an undisclosed amount of cash on foot.

William Johnson

Credit: Pinellas County Sheriff’s Office

Authorities later found Johnson at an Express Inn where he was taken into custody.

READ MORE: 2 Men Killed, 1 In Critical Condition After Shooting Inside North Philadelphia Deli

The Pinellas County Sheriff’s Office says Johnson admitted to Googling “how to rob a bank” because he was in need of money.

JetBlue Drops Tickets As Low As $31 For One-Day Flash Sale

The suspect also admitted that he planned to rob a different bank but changed his mind when he saw the teller was a large male.

Detectives say Johnson used the stolen money to pay for rent, utilities and a drug binge.

MORE NEWS: Man Shot To Death On Front Porch In North Philadelphia, Police Say

He is facing one count of robbery.