A new kind of thermostat