Change so temp actually cannot go past max/min temp