An FBI special agent accused of driving on the State Thruway in Eden without wearing pants will see his charges dismissed if he steers clear of additional trouble for the next six months.

John A. Yervelli Jr., 48, assigned to the Buffalo FBI office, was granted an adjournment in contemplation of dismissal Tuesday night in Eden Town Court.

Yervelli was charged with misdemeanor public lewdness last month by State Police. A truck driver told troopers Yervelli was driving a passenger vehicle about 9 p.m. Dec. 7 when the off-duty FBI agent “pulled up next to his truck, turned on the dome light and displayed that he was not wearing pants, while making lewd gestures,” according to State Police.

An Erie County prosecutor Wednesday confirmed this week’s court ruling, and said Yervelli is required to complete a psychological counseling program as part of the decision.

Yervelli, a Lakeview resident, has continued his job since his arrest.