Proper setting of states