The moment when Ray kisses Frank on the forehead was scripted. Ray Romano originally didn't want to do it because he didn't like doing anything that he wouldn't normally do. Phil Rosenthal decided not to pressure Romano and told him that he should only do it if he "was feeling the moment" during the taping.
Frank's fifth "holy crap".