Better waveform generator