In a case where a pathogen is detected, various mechanisms are activated to prevent the spread of infection through the plant. This includes closing of the stomata to prevent entry to leaves, additional thickening of cell walls with cellulose, callose deposits between cell wall and cell membrane near the site of infection to strengthen the cell wall.