Josh - mods to Tree_calcs