Added debug printout to mapGenerate thread.