new waveform is working properly assuming you set the delay to almost the period of the waveform