Updated version of the temperature controler