- Be a bit more robust when given e.g. nonexistent devices
- Fix bug with matching multiple devices