Moved GPS thread out of main