Generalized the info table generation a bit