Added some functionality to the checkout process