Will Ferrell delivered the commencement address at the University of Southern California on Friday.

Ferrell is an USC alumni, having graduated from the USC Annenberg School for Communication and Journalism with a degree in sports information in 1990. Before he addressed the graduates, the comedian received an honorary degree becoming a Doctor of Humane Letters, according to The Wrap.

“I have been informed I can now perform minimally-invasive surgery at any time or place even if people don’t want it,” he cracked upon receiving the degree. “In fact, I am legally obligated to perform minor surgeries at the end of today’s ceremonies or my doctorate degree will be revoked … If anyone wants hernia surgery, please meet me at the ‘surgery center’ — by surgery center, I mean the windowless van I have parked by the Coliseum."

The Anchorman star even took a shot a President Donald Trump by joking about a commencement address he had given at Trump University, saying, "I'm still waiting to get paid by Trump University. Actually, I owe Trump University money." He also addressed Helen Mirren, who received an honorary degree as well, saying that the actress stole an Oscar from him.

Ferrell did get serious at some points during his speech.

“Enjoy the process of your search without succumbing to the pressure of the result,” he said. Trust your gut, keep throwing darts at the dart board, don’t listen to the critics and you will figure it out. Class of 2017, I just want you to know you will never be alone on whatever path you may choose. If you do have a moment where you feel down, just think about the support you have from this great Trojan family. Imagine me — literally picture my face — signing this song, gently into your ear.”

And then began singing Whitney Houston’s hit “I Will Always Love You.”

You can check out the entire commencement speech below (or just skip to the end where he breaks out in song):