Added lots more debugging but still haven't solved the deadlock problem