Fix up the pipeline.py to be suitable for the tracker.