Add type for IdMap.
Pass mappings down from caller.