#216. Make usage of pipe in diagnostics configurable