Everything in generateMap should be async, probably with OS.file