I've heard adding a teaspoon of canned pumpkin (just the regular no spices added one, side note to that my friend was giving her dogs pumpkin pie canned pumpkin and couldn't understand why they had such upset tummies) will firm things up. I've had problems with certain foods being the culprit and once I changed it Kain was fine.
Anal gland smell is by far the worst.