Moving the sprectrum graphics item into separate functions.