Corrected temperature update to include exponential term