Commented out spectrum generation (not working)