Added multi-layer nesting