Gets devices.