Adding the index