Arthur Freed, the head of the "Freed Unit" at MGM responsible for the studio's glossy and glamorous musicals, conceived the idea of a movie based on the back catalog of songs written by himself and Nacio Herb Brown, and called in Betty Comden and Adolph Green from New York to come up with a story to tie the songs together and to write the script. Comden and Green first refused the assignment, as their agent had assured them that their new contract with MGM called for them to write the lyrics to all songs unless the score was by Irving Berlin, Cole Porter, or Rodgers and Hammerstein. After a two-week hold-out, their new agent, Irving "Swifty" Lazar, having looked over the contract, told them that the clause had been entirely an invention of their previous agent, and that there was no such language in the contract. After hearing this, Comden and Green began working on the story and script.