Implement tagged sequences and flow mapping