Working version (i.e. does not crash!) with first QC level now included