Added functionality for setting temperature