Update Fuctions.class.php