Connecting health check code up to routes.