Californian officials say they will spend more than $40 million on an earthquake early warning system. The announcement comes after two powerful earthquakes shook parts of the state last week. On Thursday, a 6.4-magnitude earthquake struck an area in the Mojave Desert, but the effects could be felt as far away as Los Angeles. Then on Friday, a 7.1-magnitude earthquake struck near Ridgecrest, California, causing damage to houses and roads. The proposed early warning system would let the public know of a possible quake. Officials say it also would automatically halt trains and open fire station doors moments before a major quake strikes. California Governor Gavin Newsom made an announcement after Friday’s quake. He said that the state has already put in place 70 percent of 1,115 sensors needed for a statewide system.