Updated pipeline function, error present segementation fault more work needs to be done on string being used to control the function.