Moved endpoint URL to config file.