Fixing comparisons and disabling OutputDebugString logging.