Added a generate script