Fixing bug preventing this filter from working when read from a pipeline file
Adding code to make a copy of the pipeline via writing the pipeline to a file first then reading it back in. Bad ugly kludge but it seems to work. Not really sure I like the design of it though.