Working on the Windows threading bug