Update php/functions.php