Change output folder of mods. Some refactoring.