How to add a device