Replaced UploadFiles function. Wrong assumption that it issn't used.