Hierarchical match.