Updated calculation of covariances