Added code to try and reduce cooler and heater fighting