Take minVal into account