Waste control in food and pharmaceutical industries