Finished scenario generation and adequate ending code.