Additional distance measures and Cardinality mismatch Exception