Transfering to a new state machine