take it off the heat before the rice is totally cooked through, and cover the pan in tinfoil, leaving it to cook under its own steam for 5-10 minutes.