Implement device discovery.