NEW YORK - Public Advocate Bill de Blasio is gaining new support in the race for New York City mayor.

Five state Assembly members and three City Council members switched allegiances Thursday in hopes of avoiding a runoff election in the Democratic primary, which could weaken the winner for the general election.

Several labor unions are also now rallying behind de Blasio, who has slightly more than the 40 percent of votes needed to advance to the general election.

Runner-up Bill Thompson, a former city comptroller, says he's not giving up yet, despite pressure to bow out.

Election officials are checking vote totals and adding absentee ballots.