Implemented shallow nesting