How to manage different device types