Use a pipe so that errant queries don't cause unexpected behaviour.