To auto generate flows