Square-root function improves thermostat

Square-root function improves thermostat