Added user agent to logging