ORLEANS — A Westford man was charged with driving under the influence of alcohol, fourth offense, Friday in Orleans District Court after a judge allowed a motion to amend the original complaint from a June 15 incident in Eastham.

Daniel Drinkwater, 52, had pleaded not guilty June 18 to charges of driving under the influence of alcohol and negligent operation of a motor vehicle, according to court records. The charge of driving under the influence was amended to fourth offense after prosecutors presented information Friday about Drinkwater’s previous convictions from OUI cases in 2017, 1998 and 1988. The prosecution’s motion was allowed without objections, according to records. Drinkwater was released on personal recognizance.

At around 3:08 p.m. June 15 police found across Drinkwater in a blue Toyota Tacoma in the southbound lane of Route 6 that appeared to have a flat tire, according to the police report. At the time, he told police he had hit a curb and was on the phone with an emergency vehicle service company. After a series of sobriety tests, he was arrested, according to reports.

Drinkwater returns to court Aug. 15 for a pretrial hearing.