Use custom function to connect to jabber