Adding typesToTreatAsOpaque option