Sample locator function.