Changed location of version and user agent constants to avoid update problems.