Correctly constructs a memory map.