NEW YORK (CBSNewYork) — The man serving life in prison for setting off a bomb in Chelsea nearly four years ago has been sentenced to an additional life term.

On Friday, a judge sentenced Ahmad Khan Rahimi for attempted murder.

READ MORE: New York Poised To Lift Most COVID Restrictions As Vaccination Rate Hovers Around 70%

Rahimi got into a shootout with Linden, New Jersey, police during his arrest in the fall of 2016.

READ MORE: Report: Shake Shack Manager Falsely Accused Of Trying To Poison NYPD Officers Files Lawsuit

Officer Peter Hammer was shot in the head during the shootout, but miraculously survived.

Thirty people were injured in the Chelsea bombing.

MORE NEWS: Actress Lisa Banes Dies After Being Struck By Scooter On Upper West Side

A second bomb failed to explode.