The code you provided. I think is wrong, if I recall correctly it's to be like:
You'll have to call a thread within the file/mod you want to use.
Else it won't work.
When you do so, most of the settings from that game mode, will over-ride (take over) the affects of the old one. (The main)
Which would mean: When loading a secondary mod. If both have something that will be done if you press: N
Both mods will run their actions, and you will have two affects of it.