Phosphorus control