Added row consistency check to Writer