Changes to generate.sh