 Roger Corman (qv) wrote the original treatment of the film, which  was serious in tone, but thought it was not right and, in his words,  was "kind of vile". He decided the dark material of the story would  be better served by making the movie into a comedy and had  Robert Thom (qv) rewrite the treatment.