The bacteria first have to find a proper place to build a biofilm. Pili (also called fimbria or flagella) first make contact with the surface where the biofilm will be built. Then the cells secrete substances, such as polysaccharides and proteins. Some of the bacteria lose their flagella or pili during the process. Later, they produce other types of pili that help manufacture the toxin that causes the severe disease in humans.