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

‘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.

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.

He is facing one count of robbery.