Adding a finished boolean is a more natural way I think to clarify that it's the all data has been read than adding a value at then end of the array, i think. So it's more a refactoring than something explicitly needed for the speedup improvements.