James Bond in film of the funding for the Bond films, fell into financial difficulties following the box office failure of "Heaven's Gate" (1980), bringing uncertainty to the future of the funding. The situation was resolved in May 1981, when Metro-Goldwyn-Mayer acquired United Artists. Following "For Your Eyes Only", Roger Moore had expressed a desire to stop playing James Bond. His original contract had been for three films, a requirement fulfilled with "The Spy Who Loved Me". Subsequent films had been negotiated on a film-by-film basis. The producers engaged in a semi-public quest for the next actor to play Bond, which would be for
M (James Bond) that the character is said to be on leave, with his lines given to either his Chief of Staff Bill Tanner or the Minister of Defence, Sir Frederick Gray. Later films referred to Lee's tenure as head of the service, with a painting of him as M in MI6's Scottish headquarters during the 1999 instalment "The World Is Not Enough". After Lee's death in 1981, the producers hired actor Robert Brown to play M in "Octopussy". Brown had previously played Admiral Hargreaves, Flag Officer Submarines, in the 1977 film, "The Spy Who Loved Me". Bond scholars Steven Jay Rubin, John