Sanity checks.