Add filtering on type.