Add some debugging / logging.