Added a sanity check.