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: 2 Suspects Fatally Shot During Home Invasion In South Philadelphia, Police Say

‘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: Officer Fires Gun During Struggle With Suspect Wanted For Stealing Car, Philadelphia Police Say

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: Federal Fire Safety Policy Inspired By Deadly Fairmount Fire Headed To US House Floor For Vote

He is facing one count of robbery.