set_leader_PER = {

	if = { limit = { check_variable = { ruling_party = 2 } }

		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { liberalism_leader = 0 } }
			add_to_variable = { liberalism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Reza Pahlavi"
				picture = "Western_King_Reza_Pahlavi.dds"
				ideology = liberalism
				traits = {
					king
					western_liberalism
					pro_american
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { liberalism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { liberalism_leader = 1 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { liberalism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Hamed Esmail"
				picture = "hamed_esmaeilion.dds"
				ideology = liberalism
				traits = {
					western_liberalism
					cautious
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { liberalism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 1 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { conservatism_leader = 0 } }
			add_to_variable = { conservatism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Shirin Ebadi"
				picture = "shirin_ebadi.dds"
				ideology = conservatism
				traits = {
					political_dancer
					sly
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { conservatism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 3 } }

	if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { socialism_leader = 0 } }
				add_to_variable = { socialism_leader = 1 }
				hidden_effect = { kill_country_leader = yes }

				create_country_leader = {
					name = "Nezameddin Movahed"
					picture = "nezameddin_movahed.dds"
					ideology = socialism
					traits = {
						western_socialism
						sly
					}
				}

				if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { socialism_leader = 1 } }
				if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
			}
		}
	else_if = { limit = { check_variable = { ruling_party = 12 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Neutral_Muslim_Brotherhood_leader = 0 } }
			add_to_variable = { Neutral_Muslim_Brotherhood_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Mir-Hossein Mousavi"
				picture = "mir_hossein_mousavi.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					writer
					honest
					geopolitical_thinker
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Muslim_Brotherhood_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Neutral_Muslim_Brotherhood_leader = 1 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Neutral_Muslim_Brotherhood_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Mehdi Karoubi"
				picture = "mehdi_karoubi.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					neutrality_Neutral_Muslim_Brotherhood
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Muslim_Brotherhood_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Neutral_Muslim_Brotherhood_leader = 2 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Neutral_Muslim_Brotherhood_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Ardeshir Amir Arjomand"
				picture = "ardeshir_amir_arjomand.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					neutrality_Neutral_Muslim_Brotherhood
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Muslim_Brotherhood_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 21 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Nat_Fascism_leader = 0 } }
			add_to_variable = { Nat_Fascism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Esfandiar R. Mashaei"
				picture = "esfandiar_mashaei.dds"
				ideology = Nat_Fascism
				desc = "PER_mashaei_desc"
				traits = {
					nationalist_Nat_Fascism
					corruptible
					sly
					spy
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Fascism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 13 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Neutral_Autocracy_leader = 0 } }
			add_to_variable = { Neutral_Autocracy_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Hossein-Ali Montazeri"
				picture = "hossein_montazeri.dds"
				ideology = Neutral_Autocracy
				desc = "PER_montazeri_desc"
				traits = {
					neutrality_Neutral_Autocracy
					zealous
					cleric
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Autocracy_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 15 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { oligarchism_leader = 0 } }
			add_to_variable = { oligarchism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Mohammad Bagher Ghalibaf"
				picture = "Mohammad_Bagher_Ghalibaf.dds"
				ideology = oligarchism
				traits = {
					neutrality_oligarchism
					technocrat
					corruptible
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { oligarchism_leader = 1 } }
			if = { limit = { date < 2010.1.2 } set_temp_variable = { b = 1 } }
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 4 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Communist-State_leader = 0 } }
			 add_to_variable = { Communist-State_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Ashraf Dehghani"
				picture = "PER_ashraf_dehghani.dds"
				ideology = Communist-State
				traits = {
					emerging_Communist-State
					guerrilla_leader
				}
			 }

			 if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Communist-State_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Communist-State_leader = 1 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Communist-State_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Navid Shomali"
				picture = "navid_shomali.dds"
				ideology = Communist-State
				traits = {
					emerging_Communist-State
				 }
			}

			 if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Communist-State_leader = 1 } }
			 set_temp_variable = { b = 1 }
		 }
	}
	else_if = { limit = { check_variable = { ruling_party = 8 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Mod_Vilayat_e_Faqih_leader = 0 } }
			add_to_variable = { Mod_Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Sayyid Ali Hosseini Khamenei"
				picture = "sayyid_ali_hosseini_khamenei.dds"
				ideology = Vilayat_e_Faqih
				desc = "PER_khamenei_desc"
				traits = {
					emerging_Vilayat_e_Faqih
					cleric
					geopolitical_thinker
					stubborn
					anti_zionist
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Mod_Vilayat_e_Faqih_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Mod_Vilayat_e_Faqih_leader = 1 } }
			add_to_variable = { Mod_Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Sayyid Ali Hosseini Khamenei"
				picture = "sayyid_ali_hosseini_khamenei.dds"
				ideology = Vilayat_e_Faqih
				desc = "PER_khamenei_desc"
				traits = {
					emerging_Vilayat_e_Faqih
					cleric
					geopolitical_thinker
					stubborn
					anti_zionist
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Mod_Vilayat_e_Faqih_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Mod_Vilayat_e_Faqih_leader = 2 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Mod_Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Mohammad Khatami"
				picture = "Mohammad_Khatami.dds"
				ideology = Mod_Vilayat_e_Faqih
				traits = {
					emerging_Vilayat_e_Faqih
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Mod_Vilayat_e_Faqih_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Mod_Vilayat_e_Faqih_leader = 3 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Mod_Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Hassan Rouhani"
				picture = "Hassan_Rouhani.dds"
				ideology = Mod_Vilayat_e_Faqih
				traits = {
					emerging_Vilayat_e_Faqih
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Mod_Vilayat_e_Faqih_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Mod_Vilayat_e_Faqih_leader = 4 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Mod_Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Mojtaba Khamenei"
				picture = "Mojtaba_Khamenei.dds"
				ideology = Mod_Vilayat_e_Faqih
				traits = { 
					cleric
					emerging_Mod_Vilayat_e_Faqih 
					anti_zionist
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Mod_Vilayat_e_Faqih_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Mod_Vilayat_e_Faqih_leader = 5 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Mod_Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Mohammad Javad Zarif"
				picture = "Mohammad_Javad_Zarif.dds"
				ideology = Mod_Vilayat_e_Faqih
				traits = {
					scientist
					emerging_Mod_Vilayat_e_Faqih
					cautious
					stubborn
					political_dancer
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Mod_Vilayat_e_Faqih_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 5 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { anarchist_communism_leader = 0 } }
			add_to_variable = { anarchist_communism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Massoud Rajavi"
				picture = "massoudi.dds"
				ideology = anarchist_communism
				traits = {
					emerging_anarchist_communism
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { anarchist_communism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { anarchist_communism_leader = 1 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { anarchist_communism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Maryam Rajavi"
				picture = "maryam_rojavi.dds"
				ideology = anarchist_communism
				traits = {
					emerging_anarchist_communism
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { anarchist_communism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 19 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Neutral_Communism_leader = 0 } }
			add_to_variable = { Neutral_Communism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Hamid Taqvaee"
				picture = "hamid_taqvaee.dds"
				ideology = Neutral_Communism
				traits = {
					neutrality_Neutral_Communism
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Communism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 17 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Neutral_green_leader = 0 } }
			add_to_variable = { Neutral_green_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Kazem Moussavi"
				picture = "kazem_moussavi.dds"
				ideology = Neutral_green
				traits = {
					neutrality_Neutral_green
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_green_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 7 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Autocracy_leader = 0 } }
			add_to_variable = { Autocracy_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Mohammad Hadi Ma'refat"
				picture = "Mohammad_Hadi_Ma'refat.dds"
				ideology = Autocracy
				traits = {
					emerging_Autocracy
					cleric
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Autocracy_leader = 1 } }
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 6 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Conservative_leader = 0 } }
			add_to_variable = { Conservative_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Ali Akbar Velayati"
				picture = "IRCG_cand_Ali_Akbar_Velayati.dds"
				ideology = Vilayat_e_Faqih
				traits = {
					doctor
					emerging_Vilayat_e_Faqih
					IRGC_Member
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Conservative_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Conservative_leader = 1 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Conservative_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Mohammad Bagher Ghalibaf"
				picture = "Mohammad_Bagher_Ghalibaf.dds"
				ideology = Vilayat_e_Faqih
				traits = {
					guerrilla_leader
					emerging_Vilayat_e_Faqih
					IRGC_Member
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Conservative_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 22 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Nat_Autocracy_leader = 0 } }
			add_to_variable = { Nat_Autocracy_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Joint Chiefs of Staff"
				picture = "PER_joint_chief_staff.dds"
				ideology = Nat_Autocracy
				traits = {
					nationalist_Nat_Autocracy
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Autocracy_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}

		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Nat_Autocracy_leader = 1 } }
			add_to_variable = { Nat_Autocracy_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "G. Holako Ahmadian"
				picture = "holako_ahmadian.dds"
				ideology = Nat_Autocracy
				traits = {
					nationalist_Nat_Autocracy
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Autocracy_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}

		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Nat_Autocracy_leader = 2 } }
			add_to_variable = { Nat_Autocracy_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "General Nader Najafi"
				picture = "Army_Gen_Nader_Najafi.dds"
				ideology = Nat_Autocracy
				traits = {
					nationalist_Nat_Autocracy
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Autocracy_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}

		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Nat_Autocracy_leader = 3 } }
			add_to_variable = { Nat_Autocracy_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "General Habibollah Sayyari"
				picture = "habibollah_sayyari.dds"
				ideology = Nat_Autocracy
				traits = {
					nationalist_Nat_Autocracy
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Autocracy_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 23 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Monarchist_leader = 0 } }
			add_to_variable = { Monarchist_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Imperial Committee"
				picture = "iranian_protesters.dds"
				ideology = Monarchist
				traits = {
					nationalist_Monarchist
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Monarchist_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Monarchist_leader = 1 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Monarchist_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Reza Pahlavi II"
				picture = "reza_pahlavi_shah.dds"
				ideology = Monarchist
				traits = {
					nationalist_Monarchist
					king
					geopolitical_thinker
					capable
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Monarchist_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Monarchist_leader = 2 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Monarchist_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Ali Reza Pahlavi"
				picture = "ali_reza_pahlavi.dds"
				ideology = Monarchist
				traits = {
					nationalist_Monarchist
					likeable
					humble
					educator
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Monarchist_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 9 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Vilayat_e_Faqih_leader = 0 } }
			add_to_variable = { Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Mahmoud Ahmadinejad"
				picture = "ahmadinejad.dds"
				ideology = Vilayat_e_Faqih
				traits = {
					emerging_Vilayat_e_Faqih
					IRGC_Member
					likeable
					rash
					zealous
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Vilayat_e_Faqih_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Vilayat_e_Faqih_leader = 1 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Sayyid Ali Hosseini Khamenei"
				picture = "sayyid_ali_hosseini_khamenei.dds"
				ideology = Vilayat_e_Faqih
				desc = "PER_khamenei_desc"
				traits = {
					emerging_Vilayat_e_Faqih
					cleric
					geopolitical_thinker
					stubborn
					anti_zionist
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Vilayat_e_Faqih_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Vilayat_e_Faqih_leader = 2 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Qasem Soleimani "
				picture = "IRCG_Gen_Qasem_Soleimani.dds"
				ideology = Vilayat_e_Faqih
				traits = {
					guerrilla_leader
					emerging_Vilayat_e_Faqih
					IRGC_Member
					geopolitical_thinker
					sly
					stubborn
					anti_zionist
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Vilayat_e_Faqih_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Vilayat_e_Faqih_leader = 3 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Ali Akbar Velayati"
				picture = "IRCG_cand_Ali_Akbar_Velayati.dds"
				ideology = Vilayat_e_Faqih
				traits = {
					doctor
					emerging_Vilayat_e_Faqih
					IRGC_Member
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Vilayat_e_Faqih_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Vilayat_e_Faqih_leader = 4 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Vilayat_e_Faqih_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Mohammad Bagher Ghalibaf"
				picture = "Mohammad_Bagher_Ghalibaf.dds"
				ideology = Vilayat_e_Faqih
				traits = {
					guerrilla_leader
					emerging_Vilayat_e_Faqih
					IRGC_Member
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Vilayat_e_Faqih_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 18 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { neutral_Social_leader = 0 } }
			add_to_variable = { neutral_Social_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Behruz Khaligh"
				picture = "PER_Behruz_Khaligh.dds"
				ideology = Neutral_Libertarian
				traits = {
					neutrality_Neutral_Libertarian
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { neutral_Social_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
	}
	else_if = { limit = { western_autocrats_are_in_power = yes }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Western_Autocracy_leader = 0 } }
			add_to_variable = { Western_Autocracy_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Dariush Homayoon" # Dies in 2011
				picture = "dariush_hamayoun.dds"
				ideology = Western_Autocracy
				desc = "PER_homayoon_desc"
				traits = {
					western_Western_Autocracy
					career_politician
					cross_eyed
					writer
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Western_Autocracy_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 14 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Neutral_conservatism_leader = 0 } }
			add_to_variable = { Neutral_conservatism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Adib Boroumand"
				picture = "adib_boroumand_new.dds"
				ideology = Neutral_conservatism
				traits = {
					writer
					neutrality_Neutral_conservatism
					capable
					honest
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_conservatism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		#
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Neutral_conservatism_leader = 1 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Neutral_conservatism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Seyed Hossein Mousavian"
				picture = "seyed_hossein_mousavian.dds"
				ideology = Neutral_conservatism
				traits = {
					neutrality_Neutral_conservatism
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_conservatism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 20 } }
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Nat_Populism_leader = 0 } }
			add_to_variable = { Nat_Populism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Pendar Pezeshkpour"
				picture = "pezeshpour.dds"
				ideology = Nat_Populism
				traits = {
					capable
					stubborn
					nationalist_Nat_Populism
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Populism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		#
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Nat_Populism_leader = 1 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Nat_Populism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Hojjat Kalashi"
				picture = "hojjat_kalashi.dds"
				ideology = Nat_Populism
				traits = {
					nationalist_Nat_Populism
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Populism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		#
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Nat_Populism_leader = 2 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Nat_Populism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Reza Kermani"
				picture = "reza_kermani.dds"
				ideology = Nat_Populism
				traits = {
					nationalist_Nat_Populism
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Populism_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		#
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Nat_Populism_leader = 3 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Nat_Populism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Khosrow Seif"
				picture = "khosro_seif.dds"
				ideology = Nat_Populism
				traits = {
					nationalist_Nat_Populism
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Populism_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Nat_Populism_leader = 4 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Nat_Populism_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Zahra Gholamipour"
				picture = "gholamipour.dds"
				ideology = Nat_Populism
				traits = {
					nationalist_Nat_Populism
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Populism_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
	}
	else_if = { limit = { check_variable = { ruling_party = 16 } }

		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Neutral_Libertarian_leader = 0 } }
			add_to_variable = { Neutral_Libertarian_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Ebrahim Yazdi"
				picture = "ebrahim_yazdi.dds"
				ideology = neutral_Social
				traits = {
					stubborn
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Libertarian_leader = 1 } }
			if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017
		}
		if = { limit = { NOT = { has_country_flag = PER_second_ir } check_variable = { Neutral_Libertarian_leader = 1 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Neutral_Libertarian_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Emad Bahavar"
				picture = "emad_bahavar.dds"
				ideology = neutral_Social
				traits = {
					stubborn
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Libertarian_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
	}
}
