Update generate.cgi