In 2012, Danilo Medina narrowly won election as president against Hipólito Mejía. An accord with former president Fernandez, ratified by the broad PLD leadership, called for a change in the constitution to allow a second consecutive term as president, but with Leonel Fernandez installed as the head of the PLD pending his turn as candidate for the presidency in 2020. The constitution was changed, and Medina won reelection by a wide margin against Luis Abinader of the Modern Revolutionary Party (PRM).