Sloths are primarily herbivores and their diet consists mainly of leaves, twigs, and buds. Sloths have a low metabolic rate, which means they can survive on relatively little food. It takes days for them to process what other animals can digest in a matter of hours. Sloths are folivores, which means they prefer to eat leaves and other foliage. The two-fingered sloth has a more diversified diet that sometimes contains both fruit and seed pods, in contrast to the three-fingered sloth, which primarily consumes leaves and rarely seed pods. Sloths inherit their food preferences from their mothers. In captivity, sloths are sometimes fed cooked carrots, eggs, wildflowers, celery, bean sprouts, and bananas, but this diet contains far too much sugar, which can result in diseases including heart disease and diabetes. Sloths have a large and efficient multi-chambered stomach that helps them digest their food slowly, and it takes up to a week to process a fermenting meal.