Change: Use nesting level for elements