Added consistency check.