Properly storing mins and maxes.