General carbohydrate method