Updating AVL tree prototye for machine transfer.