The following are the eight terms of reference for the royal commission of inquiry on Sabah's illegal immigrants problem announced by Prime Minister Najib Razak in Kota Kinabalu today.