Changing script generation method