Fixed FFT, removed low frequencies, calculate the maximum. Added time counter