Use cancel argument in state.