Added all existing xbee bridge code