LOCKPORT – Former Somerset Town Justice Jeffery P. Wick pleaded guilty in Niagara County Court Wednesday to two misdemeanors, settling a case in which he had been charged with pressing down the accelerator of a car being driven by his teenage son.

Wick, 38, of Somerset Drive, admitted to endangering the welfare of a child and second-degree criminal contempt, the latter charge for violating a restraining order granted to his wife and son the day after the June 12 incident on Saunders Settlement Road in Cambria.

State police said Wick pressed his foot atop his son’s foot as the latter was driving, causing the car to speed up. The 16-year-old prevented a possible crash by slamming the transmission into “park.”

Wick, who was diagnosed with bipolar disorder the day of the incident, is to be screened for possible participation in Lockport mental health court, which could be part of a probation sentence. However, County Judge Sara Sheldon Farkas has the option of sending Wick to jail for as long as two years. Sentencing was set for March 6. In the meantime, Wick is wearing an ankle monitor.