Improve pipelined example.