The fourth in rank of the great court dignitaries was the Tengku Mentri or Orang Kaya Mentri Paduka Tuan. The mentri was an adviser atached to the court; he settled disputes between the princes and chiefs and gave his opinion on questions of law and custom. He had no special revenues attached to his office. The first holder of this dignity was an Arab named Saiyid Mahmud in whose family the title remained until A.D.1862, when Sultan Jaafar conferred the title upon Che Ngah Ibrahim, ruler of Larut, to give him more precedence than he then possessed. There was never a historical connection between the title of Mentri and the district of Larut.