set_leader_PAN = {

	if = { limit = { has_country_flag = set_Nat_Populism }

		if = { limit = { check_variable = { Nat_Populism_leader = 0 } }
			set_variable = { Nat_Populism_leader = 1 }
			kill_country_leader = yes

			create_country_leader = {
				name = "Mireya Moscoso"
				picture = "generic.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 = { check_variable = { Nat_Populism_leader = 1 NOT = { check_variable = { b = 1 } } } }
			set_variable = { Nat_Populism_leader = 1 }
			kill_country_leader = yes

			create_country_leader = {
				name = "Juan Carlos Varela"
				picture = "generic.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 }
		}
	}
}