The rulers of the Vijayanagara empire maintained the well-functioning administrative methods developed by their predecessors, the Hoysala, Kakatiya and Pandya kingdoms, to govern their territories and made changes only where necessary.  The King was the ultimate authority, assisted by a cabinet of ministers (Pradhana) headed by the prime minister (Mahapradhana). Other important titles recorded were the chief secretary (Karyakartha or Rayaswami) and the imperial officers (Adhikari). All high-ranking ministers and officers were required to have military training.  A secretariat near the king's palace employed scribes and officers to maintain records made official by using a wax seal imprinted with the ring of the king.  At the lower administrative levels, wealthy feudal landlords (Goudas) supervised accountants (Karanikas or Karnam) and guards (Kavalu). The palace administration was divided into 72 departments (Niyogas), each having several female attendants chosen for their youth and beauty (some imported or captured in victorious battles) who were trained to handle minor administrative matters and to serve men of nobility as courtesans or concubines.