Work out overall flow