Corrected parallel upload code after review