Add some sanity checks