Modifying state stuff was a bad idea.