Added reference waveform, made it nan based on series NAs