Add proper logging.