Fixing up match_cart method