Finland has two independent supreme guardians of law: the Chancellor of Justice of the Government, appointed by the President of the Republic, and the Parliamentary Ombudsman elected by the Parliament. The Chancellor of Justice works in connection with the Government, and supervises the lawfulness of the official acts of the Government, the ministries and the President of the Republic. The Chancellor of Justice also endeavours to ensure that the courts of law, other authorities and civil servants, and other persons or bodies assigned to perform public tasks, comply with the law and fulfil their assigned obligations. The Chancellor of Justice is also charged with tasks concerning the supervision of advocates and public legal aid attorneys.