LOCKPORT, N.Y. - A Lockport man was charged Friday after robbing a Tim Hortons and driving away from the scene without headlights, state police say.

Troopers responded to a call about the robbery at about 2:20 a.m. at the Tim Hortons on Robinson Road in Lockport.

While troopers were traveling to the Tim Hortons, they noticed a vehicle driving without headlights pass them on Lockport Road. The vehicle matched a description given earlier.

Troopers turned to follow the vehicle and it left the roadway. When police initiated a traffic stop, the suspected vehicle turned back onto the roadway and cooperated.

After an investigation, troopers found the vehicle was being driven by the robbery suspect: David G. Dexter, 31. He was also found to have a crack cocaine pipe on him when he was arrested.

Dexter's charges include third-degree Robbery, a felony, seventh-degree Criminal Possession of a Controlled Substance, a misdemeanor, and several traffic tickets.

Dexter was taken to the state police headquarters in Lockport for processing. He was arraigned in the Town of Lockport Court.