Add support for G2M codec