Refactor Checkout initialize. Add comments.