Recovering the wastewater