Add index spec.