Added support for changing the destination of a pipe