Implement cancel/replace cases.