Added covariance in the gain adapting