Added a small consistency check.