THE best opportunity in a generation to improve the safety of the American food supply will come as early as Monday night, when the Senate is scheduled to vote on the F.D.A. Food Safety Modernization bill. This legislation is by no means perfect. But it promises to achieve several important food safety objectives, greatly benefiting consumers without harming small farmers or local food producers.

The bill would, for the first time, give the F.D.A., which oversees 80 percent of the nation’s food, the authority to test widely for dangerous pathogens and to recall contaminated food. The agency would finally have the resources and authority to prevent food safety problems, rather than respond only after people have become ill. The bill would also require more frequent inspections of large-scale, high-risk food-production plants.

Last summer, when thousands of people were infected with salmonella from filthy, vermin-infested henhouses in Iowa, Americans were outraged to learn that the F.D.A. had never conducted a food safety inspection at these huge operations that produce billions of eggs a year. The new rules might have kept those people  mainly small children and the elderly  from getting sick.

The law would also help to protect Americans from unsafe food produced overseas: for the first time, imported foods would be subject to the same standards as those made in the United States.