Added residuals and squared residuals.