Redesigned the tree structure.