Prepare to functionise getIndexStatistics