Add better logging to indexing