Add max and min index range.