Updated xbee sample