Update rest_functions.inc.php