Added check for gps data