Added pipes in pseudo-code