Add WaitForThread