Added code to run one pipe