Updated so that a script is produced.