Made fourier_example compatible with scripts