Moved quality report stuff into if statement
Resolved conflict in pipeline_analysis