States are now loaded and unloaded properly by the state manager.