Code is all working except for slight bug. I think bug is in parser. Results in pipe initially being empty