Changed processing algorithm to fork every time and output to channel.