Adding subtree dist