Adding cancel handler; doesn't compile yet.