Improving checking of valid recent locations.