Minor improvements in PipelineUtils