Changed pipeline provider into a class.