And update the index