with start and end time logging