Modified to read pack indexes incrementally.