Added dirtree and global revert buffer