ADded some more logging.