Waste residue treatment