Changed containsOneOf to appearance
Changed detection ways