Move generateTable to CLIUtil