Fixed filter so it works properly with pipelining.
Used kBufferCapacity with generators too.