Modified finishGPS()