ZELIENOPLE (KDKA) — When robbing a bank, it’s probably best to clear your search history.

That’s something Chad Vaughan forgot to do prior to robbing the NexTier Bank in Zelienople in October of 2018.

READ MORE: Pittsburgh Weather: Clear Skies, Sunny Sunday

Vaughan pleaded guilty to robbing the bank and part of his online history was part of the case that the prosecution brought against him.

READ MORE: Pittsburgh Area Residents Still Receiving Chase Bank Cards They Did Not Sign Up For

According to police, Vaughan had searched “what is the jail time for a bank robbery” and “how easy is it to rob a bank” prior to committing the crime.

MORE NEWS: 'Moderna Arm': Some People Develop Reaction To Moderna COVID-19 Vaccine

Vaughan is facing up to 20 years in prison.