Work correctly when piping data into logn