Working at Goldeneye between January and March 1960, Fleming wrote the novel "Thunderball", based on the screenplay written by himself, Whittingham and McClory. In March 1961 McClory read an advance copy, and he and Whittingham immediately petitioned the High Court in London for an injunction to stop publication. After two court actions, the second in November 1961, Fleming offered McClory a deal, settling out of court. McClory gained the literary and film rights for the screenplay, while Fleming was given the rights to the novel, provided it was acknowledged as "based on a screen treatment by Kevin McClory, Jack Whittingham and the Author".