Working version on temperature