A MAN will stand trial next year accused of preparing to commit acts of terrorism and suggesting online that he planned to attack a mosque.

Sam Imrie, 22, allegedly acquired knives, nunchucks, a hammer, a baseball bat, a rifle scope and petrol, which he referred to as his “arsenal”, between June 20 and July 4 this year.

He is accused of posting statements on the internet platform Telegram indicating he planned to stream live footage of an incident and posted statements suggesting he was going to carry out an attack on the Fife Islamic Centre in Glenrothes.

It is also alleged he recorded and compiled details of terrorist attacks on places of worship. Imrie denied all the charges against him when he appeared at the High Court in Glasgow yesterday.

READ MORE: Boris Johnson forced to apologise for his ‘letterbox’ burka remark

It is alleged that, intending to commit acts of terrorism, he engaged in conduct in preparation at various places in Glenrothes and Markinch in Fife and elsewhere between June 20 and July 4.

Prosecutors claim he repeatedly tried to get into the centre and uploaded photographs and video footage of it to Telegram, and also set fire to property at Strathore Lodge in Thornton and St Drostan’s Cemetery in Markinch.

They allege he went to the Fife Islamic Centre in a car with a can of petrol and that Imrie possessed Nazi, neo-Nazi, anti-Muslim, anti-Semitic and other racist or violent images; text and audio files and images that glorified terrorism.

Imrie is also accused of publishing or causing another person to publish statements, images and video footage on Facebook and Telegram glorifying terrorist acts committed by others, making offensive comments about the Muslim and Jewish communities and uttering racial remarks. It is alleged the offences were racially aggravated and aggravated by religious prejudice.

Imrie faces two charges under the Terrorism Act 2006 and one under the Terrorism Act 2000. He is also accused of possessing “extreme pornographic images” and that he took or permitted to be taken, or made, indecent photos or pseudo-photographs of children and that he drove while unfit through drink or drugs on July 4 this year. A trial date was set for June 1.