Ugly but working piping.