By August 30, James Roday and Dulé Hill had been cast to play the show's main characters. It was also announced that the production for the show's pilot episode would begin shortly, and the episode would likely air in 2006. On January 5, 2006, USA announced the Psyche would be competing against In Plain Sight, written by David Maples, and Underfunded, written by David Breckman, for air time and broadcasting slots. Later in January, the network confirmed that the pilot episode for the show would air later that year. They also announced that the show's name had changed to Psych. On February 21, 2006, USA Network announced that it had ordered eleven one-hour episode scripts for Psych. They confirmed that the show would take Monk's 10 p.m. (EST) Friday night time slot, and that the pilot episode, planned to be two hours in length, would be broadcast on July 7. The network also revealed that Corbin Bernsen had been cast as another of the show's major characters. The network released, on April 27, that filming for the pilot episode, which had been cut to 90 minutes in length, had begun in Vancouver, British Columbia. In addition, USA Network announced that Timothy Omundson and Kirsten Nelson would have starring roles in the episode. Writing The episode was written by Steve Franks, who reused much material from the original pitch to USA Network. The pitch focused on a man who would call in crime-solving tips to the Santa Barbara Police Department through his photographic memory and uncanny ability to notice details. It followed him as he was arrested by the police, talked his way out of jail, and solved a crime for the police department. The plot of the show was later changed to Shawn's fake psychic ability by the producers. The show's introductory flashback to young Shawn was adapted from the pitch, in which it was located in the middle of the installment. The use of an introductory flashback has been used in almost all following episodes. Among other scenes added to the episode was a confrontation between Shawn and Henry at a barbecue restaurant, which was added by Corbin Bernsen, and the episode's conclusion, again a confrontation between Shawn and Henry. In addition, much time was spent revising the scene of the arrest of Mr. McCallum. Large portions of the installment's dialogue were improvisations made by James Roday. Several of