adding capabilities to traverse the logic tree.