Moved the state functions into one table and overall enhanced it. Woo! UKI UKI MIDNIGHT!