Update functions.inc.php