He pleaded guilty to terrorism, 22 counts of arson, 21 counts of reckless endangerment, burglary, aggravated assault, and loitering.