Rubin and Ramis then collaborated on an additional rewrite. The pair worked on individual sections and then edited each other. Ramis then spent a few days refining it into the screenplay. Rubin recommended that they not include any references to the 1990s or any specific period to allow it to remain timeless. Rubin has said that the final film largely resembles his script. He did regret the loss of a scene between Phil and a 14-year-old boy, in which the child behaves like Phil did at the start of the film, contrasting with Phil's character development by that point in the script. A few scenes were written but not filmed, including Phil praying at a church, gambling, and a scene Murray personally vetoed, of Phil stripped naked to force an elderly man out of a swimming pool. Although the script was complete, it continued to undergo changes during filming.
rubIn ANd ramis thEN CoLLabOrAted On AN addITIoNal RewRite. THE pair workEd on IndiviDuaL SECtiOns And Then editeD EaCH other. ramiS TheN spent A few dAys reFIning it iNto the SCreenplaY. rUbIn rEcoMMEndEd thAt theY NoT incLUde Any ReferenCes to thE 1990S or any spEciFIc perioD tO AlLow it tO remAin TImElEss. rubin Has SAId that thE final fiLm larGelY ReseMBLes hiS scRipT. hE did regret THe Loss of a sCene Between Phil and A 14-yeaR-old boY, in WHich the child bEhavES likE PHil dID aT thE stARt of ThE fiLm, ContRASTiNg witH phIL's characTer dEveloPMent By ThAt poinT iN thE sCriPT. a FEw Scenes Were WritTEN But Not fIlmed, inCludiNG pHil prayiNg aT a chUrch, GambLing, ANd a scenE mUrraY PERsoNally veToed, of phIL STRippeD Naked tO FORce aN elderly mAN Out OF a sWiMMIng poOL. alThOuGh thE sCript waS ComPleTe, It continued to UnDergo changEs During filming.