Reading tree structure.