Some sanity checks.