Removed code from state machine definition