Merging qc and preprocess stages into one.