Use file piping directly instead of cat