Fixed bugs with error propogation. Changed signature of pipelines