Implement device discovery and persistence.