Modifying the ComplementTypes class
Trying to fix the addTypesToIndex stage
.