Changed gen.bat file