Update reg.functions.php