Added ability to add objects to index