Added buffering to task channel.