Apple’s Emergency SOS feature is again being credited with helping an iPhone user reach emergency services during a dire situation. WTKR reports that a Virginia Beach woman used the Emergency SOS feature on her iPhone to reach emergency services when a man attempted to sexually assault her.

The event transpired at around 2 a.m. on Sunday morning at the Virginia Beach Oceanfront. The woman, who requested to stay anonymous, told the story:

After this, the woman attempted to run away, but the attacker caught up with her:

He eventually tells her he might have lost it in the sand. She let him use the “Find My iPhone” app on her phone, but it wasn’t working. She got a terrible feeling when she realized he doesn’t know how to navigate her iPhone to use the app.

She then had the idea to use the Emergency SOS feature on her iPhone to contact emergency services. She held the power button and volume down button at the same time, which quickly connected her with law enforcement. Dispatch was able to hear what was going on and send police to her location.

One key detail was what dispatch was able to hear during her struggle with the attacker. Because dispatch heard the woman talking about the water, they were able instruct the police officers to come closer to the water rather than search the nearby hotels. “All the cards lined up for me, but I know that doesn’t always happen and people aren’t so lucky. And if there’s anything we can do to be proactive, we should do it,” she said.

The Emergency SOS feature on iPhone is accessible via long-pressing on the volume down and power buttons at the same time, or by pressing the power button five times on the iPhone 7 and earlier. On Apple Watch, Emergency SOS can be accessed by pressing and holding the side button.

You can read the full story on the WTKR website.