Threading still not working properly