script based on the 1970 short story "Button, Button" by author Richard Matheson, which had previously been turned into a Twilight Zone episode of the same name. The project had a budget of over $30 million provided by Media Rights Capital. Kelly described his intent for the film, "My hope is to make a film that is incredibly suspenseful and broadly commercial, while still retaining my artistic sensibility." Actress Cameron Diaz was cast in the lead role in June 2007. Most of the filming took place in the Boston, Massachusetts area, with scenes shot in downtown Boston, South Boston, Waltham, Ipswich, Winthrop, Milton, Medfield, Quincy, Kingston, and North Andover, as well as other localities. Some filming took place on the Milton Academy campus and at Boston Public Library. A large indoor set was built inside a former Lucent Technologies building in North Andover to recreate a NASA laboratory. The production crew also journeyed to NASA's Langley Research Center in Hampton, Virginia, to shoot a number of scenes for the film. Richard Kelly's father had worked at NASA Langley in the 1970s and 80s. Filming also took place in Richmond, Virginia, including overhead shots of the city, including 95 South passing the train station. Many background extras were reused in different scenes, and people with period-correct 60s and 70s cars were encouraged to participate. Arlington Steward's car, in particular, is a Buick Electra, although characters in the movie refer to it as Lincoln Town Car (an entirely different car model, which was not yet in production at the time the movie is set). Actor Frank Langella was cast in October 2007, and production began on the film the following month. Prior to production, actor James Marsden was cast a lead role opposite Diaz. Production concluded by February 2008. It was the second time Marsden and Langella worked together, the first being Superman Returns and re-teaming again in Robot & Frank. Music In December 2008, it was announced that Win Butler and Regine Chassagne of Canadian band Arcade Fire, and Owen Pallett provided an original score for the film. Butler, Chassagne, and Pallett helped Kelly during the editing process by advising his decisions. Butler, Chassagne, and Pallett had planned on releasing the soundtrack after Arcade Fire's third album release in August 2010, but as of 2021, the soundtrack is still unavailable. Release The film was first released in Australia on October 29,