Added more debugging statements to test re-use. Did some tests with IF and ForEach. Foreach always needs a parent node.