Added more logging.