Expanded on logging.