Add user agent parsing.
Add todo comment.