Added check on modelPair in Problem.