Wrapped flow in main()