Some extra sanity checks.