Corrected an error with the formulas.