Copied from TestXbee02