Added print outs for thread logic