Jack Warner wanted the prison mess hall scene replaced for budgetary reasons, stating the "cost of a single scene with 600 extras and only one line of dialogue would be exorbitant." For this reason, Warner wanted the scene shot in a chapel, but relented when "the writers pointed out that, apart from the fact that Jarrett would be willingly caught in a chapel", the whole point of the scene was to "have a lot of noise, with rattling knives and forks and chatter, that suddenly goes completely silent when Jarrett first screams." The scream was improvised by Cagney, and the shock on everyone's face was real, for neither Cagney nor Walsh informed any of the extras of what was going to happen. Warner agreed to the scene on the condition that it be shot in three hours, so "that the extras were through by lunchtime."