In 2007, he directed and teamed up with Steven Spielberg to produce Transformers, a live action film based on the Transformers franchise. The film was released in the U. S. and Canada on July 3, 2007, with 8 p. m. preview screenings on July 2. The previews earned $8. 8 million, and in its first day of general release it grossed $27. 8 million, a record for Tuesday box office attendance. It broke the record held by Spider-Man 2 for the biggest July 4 gross, making $29 million. On its opening weekend, Transformers grossed $70. 5 million, amounting to a $155. 4 million opening week, giving it the record for the biggest opening week for a non-sequel. As of November 2007, the film has made over $319 million domestically and over $709 million worldwide. Bay returned as director and executive producer for Transformers: Revenge of the Fallen, which was released on June 24, 2009 and went on to gross over $832 million worldwide. Although it received mostly negative reviews by critics, including aggressively critical reviews by American film critics such as Roger Ebert, Michael Phillips and David Denby (who referred to Bay as "stunningly, almost viciously, untalented"), the film was well received by its intended audience and was one of the highest-grossing films of 2009.  In 2010, it earned seven Golden Raspberry Award nominations and winning three: Worst Picture, Worst Director and Worst Screenplay.  It was also one of the best selling DVD and Blu-ray Discs of 2009, second only to Twilight in DVD format and the number one of all time in Blu-ray format until it was surpassed by Blu-ray sales of James Cameron's Avatar in April 2010.  Bay directed Transformers: Dark of the Moon, released on June 28, 2011.  which went on to gross $1. 123 billion globally.  His next film was a comparatively small film he had been developing for years, called Pain & Gain.  The true crime story, based on events described in a Miami New Times article written by Pete Collins, concerns a group of bumbling bodybuilders working together to commit a robbery.  It starred Mark Wahlberg, Dwayne Johnson, Anthony Mackie, Tony Shalhoub and Ed Harris.