Group functions by module