Improved mobile detection