Added logic of extracting cli_indics