Use a channel to buffer lines sent