Change num_mod semantics