Adds sanity-check