I added some stuff for having an endpoint.