Cleaned up some logging.