Start rewriting fft stuff in new func calc_power_spectrum.