Adding the identities to the index.