Added a way to capture data during indexing.