Added ability to use custom user-agent