This isn't pretty, but it does toss all the states together in one useful structure.