Added consistency checker.