Refactoring of files transfer.