Modified library3.php