Added piping code