How to set the thing up thread