Added checks for useragent. Using a standard useragent for the library is not suggested