Added temperature averaging