Modified the parameter of the SimilarityCriteria class to be a region  class.