How do you treat wastewater before it enters the watercourse?