MONTREAL — A judge has denied bail to a man facing a terrorism-related charge, calling him a lone wolf and a danger to society.

Quebec court Judge Jean-Pierre Boyer says Jeffrey Labelle is also a danger to himself and to his family and has ordered the 21-year-old to undergo a psychiatric evaluation.

Montreal police arrested Labelle on Friday after a joint investigation with the RCMP revealed he had allegedly converted to a violent form of Islam and had allegedly threatened to carry out a terrorist attack.

Crown prosecutor Sylvie Lemieux says Labelle told police and social workers that her son began acting erratically over the past three months.

The woman also said he told her after watching footage of the Islamic State in Iraq and Syria that he would commit a grandiose act she would be proud of.

Montreal police said that after searching the home Labelle shared with his mother and grandmother, they found a city map that showed the co-ordinates of four different police stations.

Labelle, who has been charged with committing a terrorism hoax, is detained pending an evaluation and is due back in court Jan. 23.