Update class.functions.php