After learning of the film adaptation from Nichols, Ben Stiller joined the project and spent nine months working on the script with Smith.
Ben Stiller joined the project. Ben Stiller spent nine months. These nine months were working on the script with Smith. Ben Stiller was learning of the film adaptation from Nichols.