Threads are not working for deployment