public void updateBundles(byte[] data) {
        bundles.clear();
        
        int dIndex = 0;
        
        while (dIndex < data.length) {
        	int startIndex = dIndex+2;
        	byte bundleID = data[dIndex+1];
        	int endIndex = (int)data[dIndex] + dIndex;
        	
        	long value = 0;
        	for (int i = startIndex; i <= endIndex; i++)
        		value = (value << 8) + (data[i] & 0xff);
        	
        	bundles.add("Bundle " + (char)bundleID + ": " + String.valueOf(value));
        	
        	dIndex = endIndex + 1;
        }
    }