Bacteria swim in many different ways, and the motors that drive their swimming are widely varied, implying an adaptive response to an environment. One of the most commonly identified of such motors is flagella. Although providing motility is a primary feature of flagella, adhesive and other properties have also been attributed to them.