Add clone to create the thread

Compile error