Consistency check.