Added functionality to log heat.