Added tree file processing