Added user agent name parsing. Resolves #1924