of the Moon" and "The Curse of the Black Spot". Her identity is revealed in "The Almost People" and she plays a larger part in "A Good Man Goes to War" and "The Wedding of River Song". Production Writing Matthew Graham was originally to write a single episode for the previous series, but withdrew because he did not have enough time to write the script. He then received an e-mail from showrunner Steven Moffat, who asked him to write for the next series; Graham agreed. When the two met, Moffat said he would like the episodes to lead into the mid-series finale and that it should deal with "avatars that rebel". Initially worried this may seem too similar to the film Avatar, Graham went on to create the Flesh. Graham wanted the Gangers to be scary, but not monsters who wanted "to take over the world for the sake of it". He wanted them to appear relatable to the audience as they were humans who deserved rights. Moffat suggested that the avatars work in a factory; attempting to make it different from other factories featured in Doctor Who, Graham proposed to set the story in a monastery, of which Moffat greatly approved. The monastery was inspired by the film The Name of the Rose, while the Gangers were influenced by The Thing; Graham described it as "The Thing in the context of The Name of the Rose". In the early drafts of the script, there were "so many copies of people running around the place" which made the story too confusing, so Graham and the production crew worked to make it more rational. The episode also contains a subplot in which Rory helps and protects Jennifer as she is scared by the Gangers, which proved a twist in Amy and Rory's relationship. Actor Karen Gillan enjoyed the twist. Amy had previously always had Rory "in the palm of her hand" and a different side of the character was shown as she experienced the same emotions Rory felt when she seemed interested in the Doctor. Actor Arthur Darvill also thought it gave Rory a chance to "man up" and be a hero by protecting someone. Filming and effects The read-through for "The Rebel Flesh" and "The Almost People" took place on 12 November 2010. It was then filmed around late November and early December. The cold temperatures at the time were