Fixed connection, added debug, debug console prints