Renaming modules according to their functions