Add rice and stock to rice cooker and cook.
Meanwhile, heat a small sauté pan over medium-high heat. When hot, add the butter or olive oil and onion. Sauté until lightly golden, about 5 minutes. Add in the ground fennel seed and sauté for another 1 minute.
When the rice is done, add the frozen peas to the rice cooker, along with the sautéed onions. Close the lid and allow to rest for 10 minutes.
When done, add in the cilantro and gently fold everything together. Season with salt and pepper.
Note: Add in the zest and juice of 1 lime to brighten up the flavour.