Some elements just don't have names. Need to generate internal identifiers for them.

Please review and merge.