Use FFT to find correct frequency