Refactored to translate tree.