Added definition and classes for task pipelines.