Make Comm write blocking and in another thread, misc stuff