Added phase and magnitude calculations to FFT.