Updated with classes for deleting and adding to the index.