The tadka is probably the most difficult part of this dish. Since each pan is different, you will have to adjust the heat and timing to ensure that the onions, garlic and spices don't burn. They should be a nice medium brown. The sequencing is also important. The onions take longest to brown so add them first, and then add the rest of the ingredients in fairly quick succession.