Adding basics for tree generation.