Added logic to cancel a subscription