Cleaning up gen.sh