Use emitO/emitW
Use a pattern to extract the tuple elements in unfold