Mendes was approached to direct after the release of "Quantum of Solace" in 2008. Development was suspended when MGM ran into financial trouble, and did not resume until MGM emerged from bankruptcy in December 2010; meanwhile the original screenwriter, Peter Morgan, left the project. When production resumed, Logan, Purvis, and Wade continued writing what became the final version. Filming began in November 2011, primarily in the United Kingdom, with smaller portions shot in China and Turkey.