Changed THREAD to void*