Added feature to display index of selected format.