Use of setThermostatSetttings instead of iterate function