Dry up connection logic
Add debugging info