Finished make-modularity-mat().