Added support for using fft instead of a wavelet transform.