Added tree structure to the index.