A 32-year-old Lawrence man, Michael D. Moore, who police subdued with a Taser in downtown Lawrence last May has reached a diversion agreement with prosecutors, his attorney said in court Thursday.

Defense attorney Kenzie Singleton informed District Judge Paula Martin of the agreement, which means the charges would eventually be dismissed if he stays out of further legal trouble for a certain period of time.

A preliminary hearing in the case was originally scheduled for Thursday. Moore faced two counts of aggravated assault and an obstruction charge after he was accused on May 21 of showing a gun and knife multiple times to two people around 2 a.m. May 21 on Massachusetts Street. Police used a Taser to help arrest him because they alleged he was uncooperative.