Stacking using non-hierarchical indexes