SAO PAULO – Brazilian President Michel Temer appointed a lower house lawmaker from his ruling PMDB party, Osmar Serraglio, to be justice minister on Thursday, a choice aimed at appeasing disgruntled members of his party.

Temer’s spokesman said Serraglio had accepted the job.

PMDB lawmakers, whose support is vital for passage of Temer’s unpopular austerity measures, were unhappy he had too many members from allied parties in his cabinet and pushed for inclusion on one of their own.

Reuters reported earlier on Thursday that Serraglio was tipped for the post. Serraglio succeeds Alexandre de Moraes who was confirmed by the Senate to become a Supreme Court justice on Wednesday.

Serraglio, a five-term congressman from Paraná state, was an ally of former speaker the lower chamber Eduardo Cunha, who was stripped of his seat and arrested last year on corruption charges.

Serraglio has said that, if appointed, he would not interfere in the investigations under way in Brazil’s biggest ever graft scandal that threatens to ensnare dozens of politicians for allegedly taking kickbacks from engineering firms seeking government contracts.

“The president had to deal with the malaise in his party,” a Temer aide told reporters on condition of anonymity because he was not authorized to speak about the appointment.

Temer enjoys a majority in Congress, but some PMDB lawmakers want changes to his proposal for reform of Brazil’s costly pension system, a key item on his agenda to restore fiscal discipline and business confident in a stagnant economy.

LISANDRA PARAGUASSU