added temperature support