Omar Elabi will be back in court Thursday and will be asked to sign a peace bond, after a threatening video about making bombs was traced via IP address to his home in Pierrefonds.

The visibly nervous 20-year-old appeared in court Wednesday afternoon, covering his face with his hands frequently and appearing near tears.

He is to remain in police custody until Thursday's appearance, when he'll be asked if he agrees to live with certain restrictions, including limitations on travel and on how and when he can use the internet.

Montreal police Cmdr. Ian Lafrenière said police questioned Elabi after a police intervention that involved evacuating the man's West Island neighbourhood for several hours Tuesday morning.

"It was someone that was talking about explosive devices, talking about that he was doing something like this: he was building an explosive device," said Lafrenière.

'Better safe than sorry'

Montreal police searched the home but did not find any explosives.

"At the end, better safe than sorry," Lafrenière said.

A woman believed to be Elabi's mother was also questioned and later released by Montreal police.

Police would not confirm whether Elabi appeared in the video or whether he had created it.

Police say they were alerted to the video by someone residing outside of Montreal, and they were assisted in the investigation by the RCMP and the Sûreté du Québec.

The video has been removed from social media, but police said it's not known who removed it.

"It is not there anymore. It's not because of us. I don't know who took it down," said Lafrenière.