Added terminal time logging