Added getBaseUrl method