Update generate.inc.php