Example with file piping
Added totalStats