Moved the map file from being hard coded to using a temp file