Fix flag parsing
Add builtin generator