Updating the index