Added API endpoints.