Added very rudimentary User Agent support