Jason Segel and Cameron Diaz reunite on the big screen for their newest comedy "Sex Tape."

Segel and Diaz play a married couple attempting to spice up their sex life. Diaz suggests they record their sexual acts and delete it afterwards. However, Segel's character falls asleep before he can delete the video and the recording accidentally uploads to their iPad's cloud.

Uploading a video to his iCloud wouldn't be a problem, if he hadn't used the same account for multiple iPads the couple handed out as gifts the previous Christmas. The couple now has to rush to different locations to keep the sex tape from getting out of hand.

You can watch the trailer for the "Sex Tape" movie below.  WARNING: Below video is NSFW as it contains explict content.

Segel's new movie trailer debuted during the finale episodes of the CBS hit series "How I Met Your Mother." Segel played Marshall Erickson on the show for nine years.

Many fans were upset with the way the series ended with a death and a divorce no one saw coming. However, the Los Angeles Times reports the series conclusion brought in a record breaking 13 million viewers, according to the preliminary numbers.

"No spoilers here, but let's just say that not everyone's marriage was built to last," the LA Times reports. "But a lot of fans turned out to see how it ended: A series record of 12.9 million tuned in, according to early numbers from Nielsen. And that number could well go higher in final ratings coming later Tuesday."

I won't spoil the "How I Met Your Mother" ending for you, but in the words of Barney Stintson it will go down as "Legen...I hope your not lactose intolerant because the next word is...DARY," even if its not exactly what you wanted for the characters.

Did you watch the HIMYM finale?