Made the fileIndex of the progress event sequential