Changed the ouput tree structure to include '\' before the first child