Adding functionality to index