This is a master code for creating GM files.