Added support for canceling transfers