Updating the index.