Add averaging option for fft