Added user agent and browser detection to connection