A who had pledged allegiance to the leader of the Islamic State was arrested this week for reportedly planning to attack diners at a restaurant or bar with a machete on New Year’s Eve.

The man, 25-year-0ld Emanuel Lutchman, was arrested by officials in Rochester, New York, according to NBC. Lutchman is a Muslim convert who attempted to provide information to ISIS after pledging obedience to Abu Bakr al-Baghdadi, the group’s leader. Court documents released by federal prosecutor show that Lutchman had revealed his plans to government informants, saying that he wanted to use a pressure cooker bombs, knives or a machete.

“[T]hat’s what my plan, that’s on my mind, that’s all I been thinking about ... Cause I’m getting amped up, to accept the fact that’s what I gotta do ... I will take a life. I don’t have a problem with that.”

Lutchman reportedly has a history of mental illness and previously served time for robbery charges.

According to the documents, an overseas ISIS affiliate had ordered Lutchman to carry out the attack this week, saying he should “do operations and kill some kuffar.”

[Image via Twitter]

Contact the author at melissa.cronin@gawker.com.