Debugging tweaks and allows connecting via TCP