How do I link the threads?