 Elements from Protosevich's script were introduced, while the crew consulted with experts on infectious diseases and solitary confinement.Rewrites continued throughout filming, because of Smith's improvisational skills and Lawrence's preference to keep various scenes silent.The director had watched Jane Campion's film "The Piano" with a low volume so as to not disturb his newborn son, and realized that silence could be very effective cinema.