The man who was shot by cops in Bushwick yesterday after allegedly first opening fire on them has been arrested. The suspect was also charged for allegedly attempting to steal a car, a crime for which cops were trying to arrest him in the first place.

Brooklyn resident Jerrol Harris, 27, was arrested today and hit with a slew of charges, including attempted murder, assault and criminal use of a firearm stemming from the attempted car theft. He was also charged with attempted murder of a police officer, reckless endangerment, menacing a police officer and criminal possession of a weapon.

Police say that Harris had been trying to rob 52-year-old Leon Faison early Friday morning while the latter loaded up his car. Harris shot Faison in the arm—when police arrived at the scene, they found Faison bleeding from the bullet wound.

Faison told officers that Harris was wearing bright red pants, a detail which helped cops catch up with him quickly. They cornered Harris at Jefferson Avenue between Evergreen Avenue and Bushwick Avenue. There, police say he opened fire—they shot at him a total of 84 times, though he was only struck by one bullet. You can see video of the shootout below:

Bushwick shootingby Gothamist

Harris was transported to Kings County Hospital and treated. The NYPD is investigating the shooting, though authorities believe officers acted appropriately.