Update the index