After "Insomnia", Nolan planned a Howard Hughes biographical film starring Jim Carrey. He wrote a screenplay, which he said was "the best script I've ever written", but when he learned that Martin Scorsese was making a Hughes biopic (2004's "The Aviator"), he reluctantly tabled his script and moved on to other projects. Having turned down an offer to direct the historical epic "Troy" (2004), Nolan worked on adapting Ruth Rendell's crime novel "The Keys to the Street" into a screenplay that he planned to direct for Fox Searchlight Pictures, but eventually left the project, citing the similarities to his previous films. Nolan was also adapting a film version of "The Prisoner", but later dropped out of the project.