Add logging when index.