 The "Instruction of Rekhmire" ("Installation of the Vizier"), a New Kingdom text, defines many of the duties of the "tjaty", and lays down codes of behavior.The viziers were often appointed by the pharaoh.During the 4th Dynasty and early 5th Dynasty, viziers were exclusively drawn from the royal family; from the period around the reign of Neferirkare Kakai onwards, they were chosen according to loyalty and talent or inherited the position from their fathers.