Cleveland Fed President Beth Hammack, among the most hawkish Fed officials and not a voter on policy this year, said the central bank needed to maintain restrictive monetary policy to cool inflation. The S&P 500 gained 25.48 points, or 0.38 per cent, to 6,669.18, while the Nasdaq Composite rose 178.39 points, or 0.79 per cent, to 22,662.67. The S&P 500 technology sector gained about one per cent. Communication services stocks added 0.8 per cent on the S&P 500. The S&P 500 posted 25 new 52-week highs and four new lows, while the Nasdaq Composite recorded 76 new highs and 41 new lows.