Add connection code
Added debug connection message