Beginning of changeState