Fix fourier stuff; uses autocorrelation now.