Addition of TreeLoop Macro, and minor changes.