Better handling of browser detection.