A bioreactor consists of wood chips being put in a trench. The trench goes in after the control structure, and the trench is filled with wood chips. The control structure is used to vary the speed of the water flow through the wood chips, which do the work to remove the nitrogen.