After nearly 10 hours, an armed standoff between a New Jersey cop and police in Doylestown, Bucks County, is over.

Police say 42-year-old Richard Klementovich, of Clifton Township, N.J., surrendered shortly before midnight and was taken into custody.

Klementovich is a member of the Clifton Township Police Department.

He was arraigned early Monday morning by video conference on 13 counts of criminal attempted homicide and one count of reckless endangerment.

Read more: Fox Philadelphia