Code: resolve both map and outFile w.r.t inFile.