Added sanity check macro