Changed service[index] to call the layer endpoint directly