In the meantime, heat the vegetable oil in a frying pan, add the onions, garlic and chilli and sweat for 4 minutes, then add the mustard seeds, cumin, coriander and turmeric. Cook for 3 minutes, then add to the split peas 10 minutes before the cooking time is up. Add more water or stock if necessary and season with the salt and sugar.