Implementation of the qc and qf steps of the pipeline