Handle remaining transmit window information in discovery packet
Add error handling and sanity checks