Added FFT functionality