Launch function was extended with conditions to load modules.