Upgrade generator
Now, you can specified a number of generating elements from command line