Added weighted least squares