ADD: SetStateMachine can now also set Current and Previous State