<prompt> Translate the following text to EnglishLakini mtu muhimu katika sultanate alikuwa Tun Perak, bendahara waziri mkuu na kamanda wa kijeshi.  <response>: But the key figure in the sultanate was Tun Perak, bendahara prime minister and military commander. 