Routine for dealing with map size differences