Trying to get the index to update