 The multiple-ending concept was developed by John Landis, who claimed in an interview to have invited playwright Tom Stoppard, writer and composer Stephen Sondheim, and actor Anthony Perkins to write the screenplay.The script was ultimately finished by director Jonathan Lynn.A fourth ending was filmed, but Lynn removed it because as he later stated, "it really wasn't very good.