Hacked script for generating tiles...
Get the generation process to exit on success