First addition of fourier, very buggy