Almost done debugging connection management