SACRAMENTO (CBS/AP) – California received funding to help begin an earthquake warning system across the state next year that would provide enough time for trains to brake, utilities to shut off gas lines and people to dive under a table until the shaking stops.

Scientists have tried to make the public alert system available, but money has been a problem. Now, $5 million has been allocated in a major spending bill approved by Congress, according to a joint statement Monday by Sen. Dianne Feinstein, D-Calif., and U.S. Rep. Adam Schiff, D-Burbank.

READ MORE: 2nd Suspect Jailed In San Mateo Murder Of Rap Artist Cutty Banks; Believed To Be Mistaken ID Retaliation

Feinstein called it “a down payment” and added that “more funding is necessary to complete the system.”

It would expand a limited program developed by the California Institute of Technology; the University of California, Berkeley; and the University of Washington in conjunction with the U.S. Geological Survey.

Berkeley scientists say that a scaled-down version of the system successfully warned of Napa’s August 24th 6.0 magnitude quake, the most powerful to hit the region since the Loma Prieta in 1989.

California trails Japan, Mexico and other earthquake-prone areas in developing a public alert system, which provides several seconds of warning after a fault ruptures.

READ MORE: Derek Chauvin Found Guilty On All Charges In Killing Of George Floyd

A comprehensive statewide system would cost an estimated $80 million for the first five years of operation.

Seismic early warning systems are designed to detect the first shock waves from a large jolt, calculate the strength and alert people before the slower but damaging waves spread.

The systems can’t predict quakes and are most useful during big events where it would be meaningful to warn people far away to expect strong shaking, scientists said.

Several moderate earthquakes this year in Southern California produced successful early warnings. Officials testing the system in San Francisco got eight seconds of warning before strong shaking arrived from the 6.0-magnitude earthquake near Napa in August.

MORE NEWS: Small Town Newspapers In Wisconsin File Antitrust Lawsuit Against Facebook, Google

TM and © Copyright 2014 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2014 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.