Replaced ProbModel.maxValue with maxQuantity