Manage states.