Changed to use DFT function instead of FFT function.