Implemented transition/state adding.