A method for treating biomass was developed that uses an apparatus which moves a biomass and dilute aqueous ammonia mixture through reaction chambers without compaction. The apparatus moves the biomass using a non-compressing piston. The resulting treated biomass is saccharified to produce fermentable sugars.