Hacked together problem with single spectral lines. Need to clean this
up