There is now a dedicated function for autocorrelations and autocovariances. It can also handle t-period correlations and rank transitions.