Markowitz 's script was bought by New Line Cinema in 2005 and the film spent six years in various states of pre @-@ production , with a variety of actors attached to different roles . By 2010 , Goldstein and Daley had rewritten the script , and the film finally went into production .