The 13 states are based on historical Malay kingdoms, and 9 of the 11 Peninsular states, known as the Malay states, retain their royal families. The King is elected by and from the nine rulers to serve a five-year term. This King appoints governors serving a four-year term for the states without monarchies, after consultations with the chief minister of that state. Each state has its own written constitution. Sabah and Sarawak have considerably more autonomy than the other states, most notably having separate immigration policies and controls, and a unique residency status. Federal intervention in state affairs, lack of development, and disputes over oil royalties have occasionally led to statements about secession from leaders in several states such as Penang, Johor, Kelantan, Sabah and Sarawak, although these have not been followed up and no serious independence movements exist.