BufferedConnection refactoring and logging implementation.