As Americans head to the polls, a small army of election lawyers is waiting in the wings.

The odds of a contested election like Bush v. Gore—where the outcome is so close that it turns on one state, and one state is so close that victory hangs on a recount—are slim. But if it happens, there are lawyers on both sides ready to go, with Donald Trump’s team led by attorneys from Jones Day. Hillary Clinton has tapped counsel from Perkins Coie.