Changed to reduced chisq, autocalculate variance