Added class to reset the index.