Add scoping to index.