Change the variable "stripOptionalEntries" to "optionalEntries" and its
value from a boolean to an enum.