Set up framework for keeping track of internal visit_If stuff