Updated cart functionality.