Adding some logging.