Bug fix: pipeline_printout uses history file as well