Add object to StateMachine