Correct tree generation, export process