A Florida man was arrested on Sunday after deputies said he stole a car, but didn’t realize the owner’s phone was still inside. The device’s GPS led authorities to the vehicle.

Download our PostNOW app to get the latest Breaking News

Tarik Simmons, 19, drove off in a vehicle at a Gainesville gas station at 10 p.m. Sunday while the owner was inside the station getting a drink, the Gainesville Sun reports. The owner told police his phone was still in the car and officers used a mobile application to track it.

Police said the phone pinged at a nearby hotel and they found Simmons in the stolen vehicle.

Simmons then fled the vehicle, causing it to crash into a patrol car, police said. From there, police said Simmons and an accomplice ran and pretended to be customers at a Checkers drive-through lane, The Alligator reported.

Simmons was arrested on charges of grand theft auto and resisting without violence.