Added some loopback support to pipe output back to input.