The pilot episode was filmed in the fall of 1965. A first playing for a test audience did not score well, but a re-edited version scored very well, and the series was sold to NBC. To make sure there was enough music for the series, Don Kirshner was hired. His Brill Building songwriters were among the best young talent.