Modify when the endpoint is added