An appeal was denied Thursday for the Rochester man convicted of making terroristic threats on New Year’s Eve to show his allegiance to the Islamic State.

The U.S. Court of Appeals affirmed the conviction and maximum 20-year sentence for Emanuel Lutchman.

According to court documents, Lutchman was in contact with members of ISIL throughout December 2015.

In a video posted online two days before the planned attack, Lutchmen pledged allegiance to the terrorist organization and discussed his intention to attack and hurt people.

He identified Merchant’s Grill as a potential target to kill many people on New Year’s Eve.

Once the video went online, he was arrested.