Adds sanity check.