Added a parameter to check index staleness by entity name