Added debugging to Connection.