It took 17 hours and no sleep on Sunday for the eurozone’s political leaders to reach an 11th hour reform-for-aid deal on Greece on Monday, staving off a Greek exit from the currency union for now.

But to seal the crucial “aGreekment” — the name given by European Council head Donald Tusk — Greek Prime Minister Alexis Tsipras had to sign off on tough austerity measures and fiscal reforms. In what’s being seen as a capitulation, Greece’s negotiators agreed to a list of measures even stricter than those rejected by the country’s voters in last weekend’s referendum. These will have to be approved by Greek lawmakers, as well as by other European parliaments, before a formal bailout decision can be made.

In return, eurozone leaders said they will give Greece up to 86 billion euros ($96 billion) in new bailout aid, on condition that Tsipras manages to implement these measures. Here are the key reforms required, from a full list released by the Euro Summit of eurozone leaders.

By July 15, Greece should:

— Streamline its VAT system and broaden the tax base to increase revenue

— Implement upfront measures to improve long-term sustainability of the pension system as part of a comprehensive pension reform program

— Safeguard the full legal independence of ELSTAT, Greece’s statistics office

By July 22, Greece should:

— Adopt the Code of Civil Procedure, which is a major overhaul of procedures for the civil justice system, aimed at significantly accelerating the judicial process and reducing costs

— Implement the EU Bank Recovery and Resolution Directive, the BRRD, with support from the European Commission

Additionally, Greece’s reform measures need to be “seriously strengthened to take into account the strongly deteriorated economic and fiscal position of the country during the last year,” eurozone leaders said in the statement.

That means Greece will need to:

— Carry out ambitious pension reforms

— Adopt ambitious product-market reforms, including changes to Sunday trade, sales periods, pharmacy ownership and reforms for bakeries

— Continue with the privatization of the electricity transmission network operator (ADMIE)

— Undertake rigorous reviews of the labor markets and the process for holding strikes. On the basis of these reviews, labor-market policies should be aligned with European practices and not return to previous policies, which “are not compatible with the goals of promoting sustainable and inclusive growth”

— Strengthen the financial sector, in particular by eliminating political interference

On top of that, the Greek authorities need to:

— Scale up privatization efforts. Valuable Greek assets will be transferred to an independent fund and the monetization of those assets will become a source to pay down debt. Total value of the fund is expected to be around 50 billion euros. €25 billion will be used to recapitalize Greek banks, approximately €12.5 billion will be used for decreasing debt-to-GDP ratio, while the remaining €12.5 billion be used for investments in Greece

— Modernize the Greek administration system to reduce costs

— Allow the lender institutions to work on the ground in Athens to assess progress in implementing the reforms. The Greek government will need to agree with the creditor institutions before submitting legislation to parliament