Refine modularity