Two sanity checks added.