Using GetState in openURL to be safe.