Revised code for generating world def file to work with revised generation process.