Fixed to work with new xbee library