Adding the Flow class to get rid of the rootTask and offer a less technical interface to the flow.