Update self-pipe sample and sm