Added a change state command