Updated to use BER-TLV decoding to extract responses rather than hard-coded offsets