Prosecutors say a British man used a bomb-making article from an al-Qaida publication to plan an attack on British or American military personnel in the U.K.

Prosecutor Max Hill told a London court Tuesday that Junead Khan — a delivery driver whose work took him past U.S. air bases in eastern England — was "preparing for an attack on British forces or American soldiers or airmen" when he was arrested in July.

When police raided Khan's home, they found a laptop containing an article from an al-Qaida online magazine entitled "Make a bomb in the kitchen of your mom." Khan denies preparing for an attack.

The 25-year-old is also charged, alongside his 23-year-old uncle Shazib Khan, with preparing to join IS militants in Syria. They both deny that charge.