An Ohio man on Monday pleaded guilty to plotting to attack the U.S. Capitol with guns and bombs and faces up to 30 years in prison.

Christopher Cornell, 22, dressed in black-and-white striped jail clothes and shackled, pleaded guilty in U.S. District Court in Cincinnati to attempted murder of government officials, possession of a firearm to commit a crime and attempting to provide material support to a foreign terrorist organization, the Islamic State militant group.

A fourth charge of solicitation to commit a violent crime will be dismissed at his sentencing on Oct. 31, said one of his attorneys, Eric Eckes. Cornell, who mainly answered the judge's questions with "yes ma'am" and "no ma'am," faces up to 30 years in prison and a lifetime of supervision, according to officials at the hearing.