Hierarchical lookup stage3