Update location_functions.php