This moved down to be with the rest of the functions whose existence is dependent on XMPP.