Added agent locator function