Branched from rentzsch/mogenerator 1.28