Modified ruby file to generate different versions