@einars What do you think of this implementation? Here, we're only joining from the last newline to the end.