Added in check for identical rows in sanity check.