Making changes to the publisher to allow for configuarable endpoints.