Changed poll rate and maxima detection method. Should work.