Add a index finding routine

Change-Id: Ib3ef7b2f5473eb1179251dfe819f6f2de2a125f1