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: 17-Year-Old Student Shot, Killed Near Bartram High School In Southwest 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: Bucks County 911 Call Centers Suffering Staffing Shortages: 'It Has Been A National Problem For Many Years'

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 Arrested In New York For Deadly Shooting At Vineland Wawa

He is facing one count of robbery.