Added logging.
Updated logging.