Added stuff to simulate what the measured spectrum should be.