Added computation of MSE to aid in tuning