Added fourier transform functions.