This is sub-generator to support generator-dm