A new federal law will allow shark attack alerts to be sent to cellphones.

President Donald Trump signed Lulu’s Law, a new measure requiring emergency alerts to be sent to nearby mobile devices in the event of a shark attack. It requires the Federal Communications Commission to permit the transmission of wireless emergency alerts to mobile phones in the event of a shark attack.

Similar to an Amber Alert, the law authorizes local and state authorities to deploy geofenced warnings to beachgoers’ phones when an attack occurs.

“I think it’s fantastic,” Virginia Inman, a Brevard County, Florida native, said. “I think they should have done that a long time ago.”

Inman said growing up near Cocoa Beach, you don’t often hear about shark attacks until way after they happen.

The law is named after Lulu Gribbin, a teenager who lost a hand and part of a leg while diving for sand dollars off the coast of the Florida Panhandle.

Ninety minutes before that, a different woman was attacked about four miles away, losing her arm.

The hope is this law can help prevent similar tragedies.

Brevard County emergency management said these alerts will show up on your phone as a text message, the same way residents get alerts about rocket launches, severe weather or rip current risks.

It’s important to note that agencies don’t have to use the system. The law just orders the FCC to permit the authorization of these messages.