Generate the missing indices.