Waits for device ready before getting location