You could track these variables in a map of flag name to flag var