Initializer now adds itself as a listener then in context initialised adds the endpoint