Replaced OutputDebugString with the faster WriteConsole.