Made waitForConnection more Thready c: