Remove affected rows checking. Add test.