 The work with the script started already in autumn 2004, when Östlund and Hemmendorff started to write down vignettes on the theme, inspired by or taken directly from their own experiences.Filming started in the summer 2006.One scene per day was shot during the production, with around 20 takes for each scene, although some scenes demanded far more.