Logic for GPS Modules