Added DetectBrowser function