GUATEMALA CITY (AP) — Guatemala's congress selected a successor Thursday for the vice president who resigned over a widening customs corruption scandal that implicated her top aide.

Lawmakers picked Alejandro Maldonado Aguirre, a constitutional judge who has also been a Cabinet minister, ambassador and political leader, from three nominees submitted by President Otto Perez Molina.

Maldonado said he was accepting the position "with the conviction that I must serve, do everything I can so that the government works within Guatemalan institutions."

He replaces Roxana Baldetti, whose private secretary has been singled out by authorities as the alleged ringleader of the multimillion-dollar corruption scheme.

Baldetti denies any involvement but nonetheless stepped down last Friday after lawmakers began an investigation into whether to remove the immunity that comes with her office.

Maldonado was a late addition to Perez Molina's shortlist after two failed attempts this week to present congress with a full three-person slate.

First, Labor Minister Carlos Contreras was scratched because of an apparent constitutional conflict that would have prevented him from assuming the office.

Then there were objections to the replacement nominee, Congressman Oliverio Garcia Rodas. Lawmakers feared that if Garcia were selected, his seat and its immunity privileges would then go to former Baldetti adviser Daniela Beltranena before prosecutors had a chance to determine whether Beltranena had any involvement in the corruption scandal. Garcia withdrew his name from consideration.

Perez Molina described Maldonado as an "exemplary Guatemalan."

"I ask for the support from the entire country ... all those who want to join the effort to bolster and deepen our democracy," the president said.

Maldonado will spend only about eight months in office. Guatemala has a presidential election later this year, with a new government scheduled to swear in next January.

Several dozen people have been implicated in the customs scheme, in which officials allegedly took bribes to evade millions of dollars in import duties.

Wiretap recordings in the case include multiple mentions of "the No. 2," ''the lady" and "the R," and prosecutors are investigating whether those were references to the former vice president.

The scandal sparked large demonstrations and calls from various sectors of society demanding that Baldetti resign.

Baldetti has been ordered not to leave the country.