A man who set off a series of pressure cooker bombs in New York City in 2016, injuring 30 people, has been sentenced to life in prison.

Ahmad Rahimi, 30, planted a series of bombs in the New York district of Chelsea and along the course of a New Jersey fun run in September 2016. He was arrested in New Jersey, where he lives, following a shoot-out with police.

Rahimi was convicted in October of eight federal charges stemming from the two explosive devices in Manhattan: one that detonated in a skip in Chelsea, and another left a couple of blocks away that failed to detonate.

He is also accused of planting a bomb near a race route in Seaside Heights, New Jersey, that detonated before the runners passed by, and of leaving six bombs in a rucksack near the Elizabeth, New Jersey, train station. He is awaiting trial in New Jersey on those charges.