Added setter method to make base url configurable.