Autocorellation with local maximum finding - to debug