Phosphorus and nitrogen reduction