Everything has a computer in it these days–your phone, your watch, your car. Unfortunately, this means everything from a thermostat to a traffic light can be hacked by anyone with a solid Internet connection and the right know-how.

To prevent cyberterrorists from getting the upper hand, the Naval Academy is teaching its recruits old-school methods of celestial navigation. In the event that the bridge of a navy vessel is hijacked or rendered inoperable by a remote foreign source, sailors can just look to the sky and use the stars to guide the vessel to safety.

“We went away from celestial navigation because computers are great,” Lt. Cmdr. Ryan Rogers, the deputy chairman of the academy’s Department of Seamanship and Navigation, told the Capital Gazette. “The problem is, there’s no backup.”

The Navy’s first modern Magellans will graduate in 2017.