and writing Previous seasons of Buffy the Vampire Slayer had ended with an action episode which tied up all the threads of the season's main plot line, but series creator Joss Whedon wanted to end season four differently. The penultimate episode, "Primeval", had concluded the Initiative storyline, but Whedon felt the season's overall story arc had not been as cohesive as it could have been, and therefore chose to create an episode to act as a "grace note" to the season, an episode which would comment on each of the four main characters and what they had just been through. While talking about the writing of the episode, Whedon said it had been like writing poetry, a process he found "liberating and strange". Like the earlier "Hush" — an episode with almost no dialogue — he viewed the episode as an exercise in form and writing, and what it means to write. The episode has no real structure, which was a departure for Whedon, as everything he had written before was constructed before even starting the script. Yet despite its fragmented style, the episode unfolds coherently in four discrete acts, each act comprising one character's dream. Filming techniques Whedon used a variety of cinematographic techniques to achieve the dreamlike quality of "Restless". He used tracking shots with a Steadicam to follow the characters from place to place, creating a flow in the way of real dreams, where there are no logical connections between places and things. In Giles' dream, he walks from a carnival grounds into Spike's crypt, then through a corridor and straight into The Bronze, three locations not related to one another. Whedon was able to do this by simply having actor Anthony Stewart Head walk through the sets as they were built; this effortlessly created a sense of dreamlike dislocation. Another example of this occurs when, in Xander's dream, he walks from the front of the moving ice cream van towards the back, crawls up and over some boxes, through a window, and drops into his basement. In the theater scene during Willow's dream, a Frazier lens was used to provide a large depth of field, allowing both the foreground and background to be in focus at the same time, while in Xander's dream, as he moves from room to room in Buffy's house to the university dorm rooms, Whedon used a 17 mm lens to give