Add measures API to backend.