A teenager from Bradford has been jailed for making a potential bomb.
Leeds Crown Court heard the 16-year-old had researched bomb-making and made a device that could have been a "viable C02 bomb".
The court was told how the device he made could, with the addition of gunpowder and a fuse, have been a credible threat.
He was convicted of making an explosive substance and three counts of having a document useful to someone committing or preparing an act of terrorism.
He was cleared of a more serious offence of making an explosive substance with intent.
The boy, who cannot be named, will be sentenced at the same court next month.

ANPR Cameras Planned to Tackle Rat-Running in West London
Manchester's £30m Investment Delivers Cleaner Streets and Better Neighbourhoods
Bradford Man Charged with Murder and Attempted Murder After Two Women Attacked
Bradford Councillor Ibrar Ali Seriously Injured in Stabbing as Man Arrested
Ayushmann and Sharvari's New Film Challenges Marriage Traditions
Parents Fight Plans to Close West London Primary School
Burnley Man Charged Over Seven Business Burglaries
Bradford Men Arrested After Violent Jewellery Robbery Leaves Worker Fighting for Life
Man Seriously Injured in Halifax Assault as Police Make Arrest
Croydon Mayor Calls for Major Rail Upgrade to Unlock Growth
West London Street Named Second Coolest in the World
Leeds Police Operation Targets 36 Homes Linked to Crime and Anti-Social Behaviour
The Golden Era
Bhangra Nights
Alim OnAir
Remix Saturdays