Slight changes to autocorr formula.