Cleaned for removal of browser detection.