Added new setEndpoints method to pull in config values.