To deal with the issue of foaming while cooking, we use a larger pot to give plenty of space. Once the cooking fruit starts to foam, just give it a good mix, but by using a larger pot, you'll reduce the chance of it making a mess on your stovetop.