Initial addition of treeprocessor code.