Updated device detection