Adds complete thread/worker functionality