Provide a more accurate parsing of all the elements in a given device. Correct various bugs.