Implemented the basic XBee communications