Got the autocorrelation to work.. I think..