Buffers your outputs and calls a function when a linebreak is found