Wall Street rose on Friday with the S&P 500 and Nasdaq posting their largest weekly percentage gains in nearly 7 years after the Fed hinted at a more dovish approach to future interest rate hikes on Wednesday and investors hoped for progress in the U.S.-China trade dispute at a G20 summit.

The Dow saw its largest weekly advance in two years. Investors were encouraged this week by comments by Federal Reserve Chair Jerome Powell and subsequent minutes from the central bank’s latest meeting that suggested that the Fed will take a data-driven rather than ideological approach to future rate-hikes.

All three major U.S. indexes recorded modest monthly percentage gains for November.

A Chinese official said “consensus is steadily increasing” in trade negotiations between the U.S. and China as the G20 meeting got underway in Buenos Aires, sparking hopes there would be a positive resolution in the ongoing tariff dispute between the world’s two largest economies.

Trump is set to meet with his Chinese counterpart Xi Jinping on Saturday and the outcome could swing stocks for the rest of the year.

Of the 11 major sectors in the S&P 500, all but the energy index ended the session in positive territory. Energy stocks fell 0.2 percent as crude prices extended their slide. On a more positive note, the decline in oil prices raised airlines stocks. The Dow Jones Airlines index rose 2.8 percent.

Shares of Marriott International sank 5.6 percent after the hotel operator said hackers stole about 500 million records from its Starwood Hotels reservation system.

General Electric fell 5.5 percent following a Wall Street Journal report that former employees are being questioned by federal investigators about the company’s failure to acknowledge its insurance business’ worsening results over the years.

Approximately 8.39 billion shares changed hands on the major domestic equity exchanges, as compared to the 7.63 billion share average over the last 20 full trading days.