Updated temperature evolution code.