Added color to temperature, refactored