Added debug api.