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: Body Cam Video Shows Aftermath Of Argument Between Gabby Petito, Fiancé Weeks Before Her Last Call To Family

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: New Jersey High School Teacher Accused Of Having Sex With Student

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: Gabby Petito Search: Timeline Of Road Trip With Fiance Brian Laundrie, Notable Dates And Events

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