Added support for cancelling transfers