Update useful_functions.php