First cook the rice and allow it to cool by spreading on a plate. Heat a pan with oil, add seasoning ingredients once they pop. Add chopped onions,slit green chillies and fry till they change colour.