Split up flow into different files