Added full functionality to checkout