Added: Generate script

It's pretty dirty.