Modified pipeline to use ErrorT and mtl