Moved list-only output from flist.c to generator.c so that it works