Extracted MSE function and EvalCurve