I have commented out the XMPP connection to localhost and changed some debug messages