First version of mabs_qc.py