The CBS reboot of “S.W.A.T” and HBO’s “Westworld” have shut down production in response to wildfires in Southern California.

“Production of @swatcbs has been suspended for the day due to wildfires and unsafe air near our stages,” said a tweet from that show’s writers’ room. “Safety of cast and crew come first. Prayers to all affected by these fires.”

In their statement, HBO said, ““Due to nearby wildfires, ‘Westworld’ stopped production earlier today and will resume filming as soon as it’s safe to do so.”

Both series films near Santa Clarita, where the Rye Fire is currently raging. The blaze has scorched 500 acres of land in the area and necessitated the shutdown of the 5 Freeway in both directions, per ABC News. It is one of several fires that is currently ongoing in Southern California, including the Thomas Fire in Ventura County and the Creek Fire close to Sylmar. Battling the fires has been hindered by the strong Santa Ana winds. Thousands of residents have been evacuated.

“S.W.A.T” was recently picked up for a full season at CBS. Inspired by the 1970s television series and the feature film of the same name, the series stars “Criminal Minds” alum Shemar Moore as Daniel “Hondo” Harrelson. He and his elite police unit are tasked with taking on some of the most dangerous criminals that Los Angeles has to offer. In addition to Moore, the series stars Stephanie Sigman, Alex Russell, Jay Harrington, Lina Esco, Kenny Johnson, Peter Onorati, and David Lim.

“Westworld” is currently filming its second season. The series was nominated for 22 Emmy Awards for its first season, ultimately winning five.