Lentils do not cook well in acidic foods such as tomatoes. Sometimes it works; other times it doesn't, you can simply add everything together at once if you wish, but I've found the best results with adding cooked lentils to the pot.