Implemented piping multiple commands. Needs some cleanup, but it seems to work.