Add basic support for moving threads.