The governor of Brazil’s richest and most populous state was picked by the Brazilian Social Democracy Party as its candidate for next year’s election challenging President Jair Bolsonaro.

Joao Doria, governor of Sao Paulo, was declared the winner of Saturday’s primaries for the party known as PSDB, according to Bruno Araujo, who heads the group seeking to reemerge as a competitive alternative to the right-left polarization in Brazilian politics.

Technological problems with a voting app delayed the process by a week. Doria defeated Eduardo Leite, the governor of Rio Grande do Sul.