Small changes in autocorrelation calculation