The UN and UNDP have provided strong assistance to countries where there have been difficult elections or referenda including Afghanistan, Liberia, Iraq and Haiti.