Minor changes to logging.