Added ability to set instance in cart constructor.