House Speaker Paul D. Ryan jumped at the opportunity Thursday to poke a little fun at President Donald Trump’s expense.

The Wisconsin Republican delivered a series of jokes, many aimed at the president’s tweeting habits, ego, and former chief political strategist Steve Bannon at a formal charity dinner in New York.

“Cardinal Dolan gave a benediction at President Trump’s inaugural,” Ryan said, referring to New York’s Catholic archbishop, who was also in attendance. “There was just this one kind of awkward moment when the cardinal talked about the infallible, enlightened supreme being. The president stood up and took a bow.”

A White House spokeswoman did not respond to a request for comment on Ryan’s address.

Ryan delivered the keynote speech at the 72nd Al Smith Dinner, a fundraiser, named after the first Catholic presidential nominee, that raises money for poor children. The speaker is himself Catholic.