Implemented framework and example to support Cancel