Added in some more logging.