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: Fourth Stimulus Check: Is Another Relief Payment Coming?

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: COVID-19 In Pittsburgh: Allegheny Co. Health Dept. Reports 31 New Coronavirus Cases, No Additional Deaths

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: Highland Park Bridge Ramp Closure On Rt. 28 Now In Effect As Construction Project Gets Underway

Vaughan is facing up to 20 years in prison.