Update tally.php