Added a getNames() method to export the current index