Add thread. NOT WORKING YET