Update generate.pl