I want to write an event listener that will write intermediate output to a terminal and, upon completion of a subtask, it will proceed in writing permanent output to the ter