Update self-pipe sample