Updates to get insertSpectrogram working.