Handle heterogeneous sequences