Performs state machine transitions for cruise