Added loop to try and get a GPS fix at end