Add pipes before foreground.