Improve temperature up/down function