Added time logging.