here would you mind naming this maybe `val stdoutIterator = new Iterator[Array[Byte]] {` and then putting `stdoutIterator` at the bottom of the function. I think that improves readability.