Changes to temparature code