Adding extra logging.