Switch over to using pipes