Is there a code to anchor a thread?