Update tree.pl