Update global.functions.php