Added support to fetch the index from ds