Prepare Rice - When rice is at the end of its drying cycle, heat ghee in a large saucepan over medium-high heat. Fry the onion slices, garlic, ginger, cinnamon stick, cloves, and star anise until onion becomes translucent, about 5 minutes. Add nuts, raisins and rice. Fry 2 minutes, stirring to be sure each grain of rice is covered in ghee. Stir in ketchup, water, and salt.