Added getNextAck and parseAck methods