Started writing the QMC part