Robust biofilm growth can enhance wastewater treatment efficiency