A high school principal in Southeastern Massachusetts is accused of driving while intoxicated.

James Hanna, 49, principal of Plymouth South High School, pleaded not guilty to charges on Friday in Plymouth District Court.

Hanna was behind the wheel of a Jeep Grand Cherokee Saturday night when he allegedly rear-ended another vehicle on South Street in Plymouth. Police allege that he admitted to looking down at his cell phone at the time of the crash. Hanna also allegedly admitted to drinking three beers before heading out to pick up dinner at a nearby restaurant, according to court documents viewed by WCVB.

Police said that Hanna failed a field sobriety test, and the court documents alleged that his blood alcohol content was nearly three times the legal limit.

Superintendent Gary Maestas issued a statement that said the school department is "aware of a DUI arrest of an employee within one of our schools" and that the "personnel matter" will be addressed with the individual.

“The Plymouth Public Schools will proceed in the best interest of the students of the particular school within the community of Plymouth,” Maestas continued. “A plan is being developed to address the short and long-term needs of the building and will be conveyed to the school community when available.”

There were two other people in the vehicle that was struck, WCVB reported. The passenger was reportedly treated for whiplash. Hanna was not injured.

Hanna was ordered to surrender his license. He is due back in court March 3.

Enter your number to get our free mobile app