Make set_waveform() work with plain arrays.
Log raw messages.