Make sure we output the mappings to the correct file