Added diagnostic endpoints.