Extract methods.
Add device discovery.