Use the iterator to get the value from maps to avoid two look ups.