Add some basic sanity checks