Gov. Andrew Cuomo has scheduled a special election for May 5 to replace Republican U.S. Rep. Michael Grimm, who resigned after pleading guilty to tax evasion.

Cuomo’s announcement came days after a federal judge ordered him to set the date by noon Friday in a lawsuit brought by voters in the district, which comprises Staten Island and a slice of Brooklyn.