Waves generated, FFT implemented but not working properly