Updating indices