Added chi2 DOF correction stuff