Minor changes to Cart class.