Added generate.sh script.