Refactor the progress

Consider that there might be several files processed at the same time