Implement setTemp handler