Made inclusion of tree file optional