Added temperature check.