Edited findRelevantIndices