Defining waveforms does not work yet