The role of Moneypenny was nearly recast after Maxwell demanded a pay raise for "Diamonds Are Forever" (1971). However, the producers felt it important to incorporate the regular character, and it was ultimately decided during production to add the scene where, disguised as a customs officer, she gives Bond his travel documents at the Port of Dover. Maxwell and Sean Connery filmed their lines separately and were not present together for the short scene. Moneypenny's undercover policewoman's cap disguises the hair Maxwell had already dyed in preparation for another part.