The optimizeModularity function did nothing useful