Update class_lib.php