Minor sanity checks.