Fixed a bit of pipe logic.