POINT PLEASANT, N.J. (CBSNewYork) – A New Jersey man has been sentenced to 16 years in prison for attempting to carry out a terrorist attack in New York City.

Federal officials say Gregory Lepsky of Point Pleasant was planning to build a pressure cooker bomb and detonate it in the city in support of the Islamic state terror group ISIS.

READ MORE: Former Aides Karen Hinton, Lindsey Boylan Accuse Gov. Andrew Cuomo Of Bullying, Sexual Harassment

According to the Department of Justice, the 22-year-old intended to fight on behalf of ISIS and was allegedly trying to become a martyr by driving a “bunch of explosives” to where the “enemies” could be found.

READ MORE: 6-Year-Old Boy Struck And Killed While Attempting To Board School Bus With Brother In Brooklyn

Lepsky was arrested in February of 2017 after an unrelated incident at his New Jersey home. Point Pleasant police then found the pressure cooker and plans on how to weaponize the device on his computer.

MORE NEWS: GameStop Shares Surge Nearly 104% In One Day

He pleaded guilty in March of last year to one count of attempting to provide material support to a designated foreign terrorist organization.