Courtney Cox and Jennifer Aniston have been best friends since they co-starred in the iconic television series "Friends." Cox served as the maid of honor to Aniston at her surprise wedding to actor Justin Theroux and was even the last guest to leave the party at 3 a.m.!

Last week Aniston and Theroux surprised all their friends and family with a secret wedding. The couple exchanged vows in front of over 70 people on Wednesday at their Bel Air, Calif., home, sources confirm to People magazine. "Guests were told it was a birthday party for Justin," said the source. "Jen and Justin wanted to surprise guests and guests were certainly surprised."

Cox was the last guest to leave the surprise wedding, which was also attended by Chelsea Handler, Howard Stern, Jason Bateman, Emily Blunt, John Krasinski, Sandra Bullock, Ellen DeGeneres and Jimmy Kimmel. "The last guest to leave was Courteney," a source told People. "She left right after Ellen DeGeneres and Jimmy Kimmel. She left around 3 a.m. At 2 a.m. they still had the music pretty loud."

Aniston and Theroux got engaged in August 2012 after dating for over one year, according to the Huffington Post