Add device settings

Thanks to maxwen.