Heat ghee and when heated, fry almond pieces till brown in color. Remove and keep aside.Do the same to the shallots. In the same wok/pan, fry spices and add in rice. Stir and continue to fry for 2-3 mins.Add into rice cooker.Pour the usual amount of water and salt for taste. Once rice is cooked, fluff it up.