Quick port mpcg, not tested yet