Added some functionality to the cart.