Alexander Ciccolo on Monday agreed to spend 20 years in prison rather than take his case on terrorism, weapons and assault charges to trial.

The Berkshire Eagle reports Ciccolo, 25, of Adams, pleaded guilty in U.S. District Court in Springfield to charges associated with a plot to commit a terrorist attack on behalf of the Islamic State, and a vicious attack on a nurse while he was in federal custody.

There was little new information revealed by prosecutors in the approximately 45-minute hearing, which came just weeks before Ciccolo was scheduled to go on trial.

A formal sentencing hearing was scheduled for 2 p.m. Sept. 5.

Ciccolo was arrested July 4, 2015, after he allegedly accepted a small cache of weapons from an FBI informant in Adams.