Updated Script for computing FFT