Optimal ME calculated for each material.
Fix rounding errors for material wastes.