Remove print statements now that we found the deadlock and fixed it.
And now we drop print statements in here to see where it went wrong...