Added a tree view mode.