Change struct tree_info to struct resources_info