Check_gps modified